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
janglad
started this conversation in
Turbopack Error Report
Replies: 1 comment 7 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.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 cache
on 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