question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '...\.nuxt\app.mjs' new project

See original GitHub issue

Environment

  • 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
greenn-labcommented, Sep 14, 2022

If you use to pnpm package manager, must have to install with shamefully-hoist

pnpm install --shamefully-hoist
0reactions
danielroecommented, Sep 20, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found