Node Modules Chunks Error
This error has come to a point where its affecting my velocity , I have tried this fix
optimizeDeps: {
exclude: ["node_modules/.cache"]
}
but it still keeps on appearing again and again
https://ribbon.gadget.app/edit/tanmay-dev
e5e77b319605412f4ac25872609e0578

11 Replies
There definitely must be something changed in Gadget as an overall, been experiencing this myself
Hello,
Could you please share the URL of the app and the environment that you're working on?
I have shared it above before the screenshot also the trace id is there
Did this issue still occur if you restarted the app or made a change to your api?
I've just randomly run into this again too, trade id for mine:
545c81f3a79be3514dd06b7cda78a860

(I've restarted quite a few times in the past few days but this still happens occasionally)
I think this is the real error that you two are having:
And it seems to be a Vite problem in general because there are multiple issues related to this error in the Vite github repo.
Also been seeing this a lot over the past weeks. Let’s hope vite fixes it.
I haven't been able to reproduce this. Some people (https://github.com/vitejs/vite/discussions/17738) have mentioned the following workaround:
- Clear browser cache
- Set this in the
vite.config.js
file
Just ran into this again, I think. I got the following from the server to add (and obviously isn't sorted the job, shall I drop it and replace with the above?

Probably. Please let me know if the fixes above works.