Error [ERR_MODULE_NOT_FOUND]: Cannot find module '...\.nuxt\app.mjs' new project
See original GitHub issueEnvironment
- Operating System:
Windows_NT
- Node Version:
v14.18.1
- Nuxt Version:
3.0.0-rc.3
- Package Manager:
yarn@1.22.17
- Builder:
vite
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Reproduction
I’m following this guide https://v3.nuxtjs.org/getting-started/quick-start
Describe the bug
and here is error after few seconds after yarn dev -o
[worker reload] [worker init] Cannot find module ‘….nuxt\app.mjs’ imported from ….nuxt\dev\index.mjs
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Error [ERR_MODULE_NOT_FOUND]: Cannot find module
This just worked for me, referencing my TS-extensioned exporting files as JS, where imported. The more I learn about JavaScript/TypeScript/Node, ...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
This error occurs because of the following reasons: you're trying to import an item from a module you don't have installed in your...
Read more >Installation - Nuxt
Here, you will find information on setting up and running a Nuxt project in 4 steps.
Read more >module-not-found - Next.js
A module not found error can occur for many different reasons: The module you're trying to import is not installed in your dependencies;...
Read more >Error [ERR_MODULE_NOT_FOUND]: Cannot find module in JS
The 'Error [ERR_MODULE_NOT_FOUND]: Cannot find module' occurs when you set ... when importing local files with type set to module in your Node.js...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you use to
pnpm
package manager, must have to install withshamefully-hoist
Closing as I cannot replicate this on windows with the latest nuxt + nitro. Please feel free to comment with a reproduction and I’ll take a look.