You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I manually adjusted the package versions in package.json file and then run $ yarn to install the latest packages with bug fix.
Then I started $ yarn dev, however I am still using an older package with bug. The optimize dependency is not working, and this caused some confusion in our team.
Install the dependency, then open and close vite dev server.
Next upgrade or downgrade the react version 18->19 in package.json
Install the dependency, then open and close vite dev server again.
Check the folder content in node_modules/.vite/deps and it did not change despite the version is updated.
Additional info: we configured the installStatePath in yarn to be a non-default one so the dependency info can be automatically collected by our logging system which monitors dependency confusion attacks.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
I manually adjusted the package versions in
package.json
file and then run$ yarn
to install the latest packages with bug fix.Then I started
$ yarn dev
, however I am still using an older package with bug. The optimize dependency is not working, and this caused some confusion in our team.Reproduction
https://stackblitz.com/edit/vitejs-vite-swnnga3g?file=index.html&terminal=dev
Steps to reproduce
Install the dependency, then open and close vite dev server.
Next upgrade or downgrade the react version 18->19 in
package.json
Install the dependency, then open and close vite dev server again.
Check the folder content in node_modules/.vite/deps and it did not change despite the version is updated.
Additional info: we configured the installStatePath in yarn to be a non-default one so the dependency info can be automatically collected by our logging system which monitors dependency confusion attacks.
Work around: use --force flag
Regression seems get introduced in #18560
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: