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.

`#nitro` is not defined

See original GitHub issue

Environment

❯ npx nuxi info Nuxt CLI v3.0.0-27488877.2bedebe 13:44:19 RootDir: /home/projects/github-lpk18d 13:44:22 Nuxt project info: 13:44:22


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-27488877.2bedebe
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-lpk18d?file=package.json

Describe the bug

Creating a new project with the most recent nuxt version results in a failing dev server.

Additional context

No response

Logs

ERROR  [worker reload] [worker init]Package import specifier "#nitro" is not defined in package /home/projects/github-lpk18d/node_modules/nuxt3/package.json imported from /home/projects/github-lpk18d/node_modules/nuxt3/dist/core/runtime/nitro/paths.mjs

  at TypeError.get (https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:6:292359)
  at https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:6:986991
  at Array.forEach (<anonymous>)
  at TryGetAllProperties (https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:6:986899)
  at serializeError (https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:6:987576)
  at process.workerOnGlobalUncaughtException [as _fatalException] (https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:6:1613913)
  at Object.triggerUncaughtException (https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:15:325916)
  at i.loadESM (https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:6:268244)
  at async handleMainPromise (https://github-lpk18d.w.staticblitz.com/blitz.31afbfcfe1b0985e8cbdb27d44e16766166a118e.js:6:989191)

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
pi0commented, Apr 7, 2022

Working on it (#4157) sorry for regression.

0reactions
danielroecommented, Apr 7, 2022

This is not reproducible with 3.0.0-27488954.9fbb9be now: https://stackblitz.com/edit/github-lpk18d-gvobdq?file=package.json.

(Bridge is a separate issue - raised https://github.com/nuxt/framework/pull/4170.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

package import specifier "#internal/nitro" is not defined in ...
Fresh install and when I tried : npm run generate, I have this error: Package import specifier "#internal/nitro" is not defined in package....
Read more >
Nuxt 3 package import specifier "#internal/nitro" is not defined
With client side rendering only there is no server-side rendering. Client side rendering means rendering the content in the browser using ...
Read more >
Nuxt 3 package import specifier "#internal/nitro" is not defined ...
With client side rendering only there is no server-side rendering. Client side rendering means rendering the content in the browser using JavaScript.
Read more >
Preferences - Nitro PDF
Auto rotate pages based on text orientation: If a page is found to contain text with a non-standard orientation, the page will be...
Read more >
Nitro Definition & Meaning - Merriam-Webster
The meaning of NITRO is containing or being the monovalent group NO2 united through nitrogen.
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