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.

cannot find client.manifest.mjs when adding or removing package while dev server is up

See original GitHub issue

Environment


  • Operating System: Windows_NT
  • Node Version: v16.17.0
  • Nuxt Version: 3.0.0-rc.11
  • Nitro Version: 0.5.4
  • Package Manager: yarn@3.2.3
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  • start nuxt dev
  • on another terminal , install any package using yarn (not tested with npm or pnpm)
  • try to go on any page
  • error 500

Describe the bug

Hi 👋 ,

adding a package while the dev server is on cause .nuxt/dev and .nuxt/dist being deleted.

stopping and reloading the server solves the issue since it regenerate .nuxt directory.

I reproduced this on window and WSL(ubuntu)

Additional context

No response

Logs

Cannot find module '/mnt/d/GIT/test/.nuxt/dist/server/client.manifest.mjs' imported from /mnt/d/GIT/test/.nuxt/dev/index.mjs

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
danielroecommented, Oct 2, 2022

This is likely because of the postinstall script which runs nuxi prepare

0reactions
danielroecommented, Nov 17, 2022

you should also be able to resolve just by restarting your dev server

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rails: Webpacker 4.2 can't find application in /app/public ...
It looks like there's no application.css in your manifest.json which means you might not be importing any css from within your Webpack ...
Read more >
API - esbuild
In node, you can load a module using node --experimental-modules file.mjs . Note that node requires the .mjs extension unless you have configured...
Read more >
Changelog | Meteor API Docs
OAuth related code has been moved from accounts-base to accounts-oauth , removing the dependency on service-configuration more can be seen in this discussion ......
Read more >
Keep getting "failed to download version manifest, can not find ...
So im trying to download forge and keep getting the "failed to download version manifest, can not find client jar URL" popup.
Read more >
Module Methods - webpack
When using webpack to bundle your application, you can pick from a variety of module syntax styles including ES6, CommonJS, and AMD. While...
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