Vite optimized dependencies changed and reloading many times #14801
Replies: 3 comments 4 replies
-
Hmm, if possible try switching to |
Beta Was this translation helpful? Give feedback.
-
I don't think this is specific to a particular framework/library/setup/platform. We recently upgraded to Vite 5.4.11 (no other changes) in a large Vue3 app and started seeing this issue also. We see messages about Lodash as well, but also other 3rd-party libs like AG-Grid, Vue-multiselect, and fuse.js. It's incredibly annoying, and happens frequently during development locally. Can't the reloading be disabled somehow? |
Beta Was this translation helpful? Give feedback.
-
I'm still seeing this. Why is this closed?? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I'm encountering an issue when trying to start my monorepo project using the package manager
pnpm
.Surprisingly, Vite repeatedly refreshes due to changes in optimized dependencies, as depicted in the attached screenshot below:
I've attempted various solutions, including:
pnpm vite --force
lodash
(and some other libraries that I suspected might be causing the frequent reloads) tooptimizeDeps.include
(I also tried the exclude option, but the problem persisted).Unfortunately, none of these methods have resolved the issue. Would anyone be able to provide some guidance on this matter?
Thank you.
My system:
My
vite.config.ts
:Beta Was this translation helpful? Give feedback.
All reactions