framework
framework copied to clipboard
[ERR_MODULE_NOT_FOUND] /@vite/dynamic-import-helper
Environment
- Operating System:
Windows_NT - Node Version:
v16.13.2 - Nuxt Version:
3.0.0-rc.11 - Nitro Version:
0.5.4 - Package Manager:
[email protected] - Builder:
vite - User Config:
- - Runtime Modules:
- - Build Modules:
-
Reproduction
Doesnt happen on stackblitz, so may be windows related
https://github.com/warflash/nuxt3_7794
Describe the bug
Adding a dynamic vite import like this:
const messages = await import(`./locales/${newLocale}.json`);
in rc10 or 11 throws the following error
[vite-node] [ERR_MODULE_NOT_FOUND] /@vite/dynamic-import-helper
Additional context
Sorry if this is a dupe of https://github.com/nuxt/framework/issues/7729, the error seemed different tho so I figured I'd open an issue to be save
Logs
500
[vite-node] [ERR_MODULE_NOT_FOUND] /@vite/dynamic-import-helper
at /@vite/dynamic-import-helper