Next15 + Turbo dev cause instantiated because it was required from module but the module factory is not available.It might have been deleted in an HMR update.
#74167
Labels
bug
Issue was opened via the bug report template.
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/arvinxx/antd-next-cssvar
To Reproduce
just git clone and
npm run dev
. then open/
.Current vs. Expected behavior
if run using
next dev --turbo
, it will case instantiated error.but if this project is run on webpack mode (
next dev
), it will run correctly.Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 22.12.0 npm: 10.9.0 Yarn: N/A pnpm: 9.4.0 Relevant Packages: next: 15.1.2 // Latest available version is detected (15.1.2). eslint-config-next: 15.1.2 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Developer Experience, Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I have tested 15.1.1-canary.14. It's still failed.
The text was updated successfully, but these errors were encountered: