consistent x was instantiated because it was required from module y but the module factory is not available. It might have been deleted in an HMR update.
#84264
Replies: 4 comments 11 replies
-
|
I have the same issue! The only way I have to develop is to hard refresh, but a normal refresh or HMR refresh gives me that issue. Here are all the related issues:
|
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
|
Seems like there is no error just because probably of "cache" just enable "disable cache" feature on your browser. It would be fine I guess. |
Beta Was this translation helpful? Give feedback.
-
|
@atalayio in my case I need to debug mobile web and pwa states so this "Disable cache" doesn't work in that context. Also, why would we want to disable cache? That's part of the work. To create a good cache strategy to load faster. If I disabled it then I can't test that. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
We have a somewhat large (and admittedly not very well organised) turbo repo where our main app is a Next 15.3.5 app router one with Turbopack. We're using pnpm, have no wrapper like sentry around our next config (and have tried disabling instrumentation too). On local dev we consistently run into errors like
Error: Module [project]/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/index.js [app-client] (ecmascript) <module evaluation> was instantiated because it was required from module [project]/apps/backend/dist/features/client/browser.jsx [app-client] (ecmascript), but the module factory is not available. It might have been deleted in an HMR update.I'd say 85% of the time these point to files in our own monorepo. Refreshing the page with
disable cacheon in the network tab always fixes it for that load of the page. We've tried the obvious clearing browser cache etc but this does not help. Running the app in an incognito window initially goes fine, but then starts having the same issues.Apart from this HMR in general is pretty broken in our app with modules very often not updating.
Does anyone have any idea what we could try to resolve this?
Beta Was this translation helpful? Give feedback.
All reactions