Code Monkey home page Code Monkey logo

Comments (9)

Wins0309 avatar Wins0309 commented on July 20, 2024 2

Hello I am experiencing this issue on 3.11.2 as well.

Missing "#internal/nuxt/paths" specifier in "nuxt" package is the error I got. Deduped, nuxi clean, and fresh package install does not solve it.

from nuxt.

danielroe avatar danielroe commented on July 20, 2024 1

This will happen if you have multiple versions of nuxt installed in a project - specifically a different version of @nuxt/vite-builder. You can fix by updating your lockfile or running your package manager's dedupe command.

from nuxt.

xar avatar xar commented on July 20, 2024 1

I'm experiencing similar issue on 3.11.2 tried to run dedupe already

 ERROR  [worker reload] [worker init] Package import specifier "#paths" is not defined in package .../package.json /.nuxt/dev/index.mjs

from nuxt.

mklueh avatar mklueh commented on July 20, 2024

I First thought it worked but it didn't

yarn dedupe --check says nothing to dedupe in my project

yarn dedupe --check
➤ YN0000: ┌ Deduplication step
➤ YN0000: │ No packages can be deduped using the highest strategy
➤ YN0000: └ Completed in 0s 433ms

from nuxt.

phenomenal-hardy avatar phenomenal-hardy commented on July 20, 2024

I First thought it worked but it didn't

yarn dedupe --check says nothing to dedupe in my project

yarn dedupe --check
➤ YN0000: ┌ Deduplication step
➤ YN0000: │ No packages can be deduped using the highest strategy
➤ YN0000: └ Completed in 0s 433ms

Got it working!

Updated all my nuxt projects to latest version, deleted node_modules and run nuxi cleanup on each project, then run pnpm install on root folder (its a monorepo using turbopack)

update nuxt to latest version, delete node_modules folder on each project
/monorepoRoot/apps/project1/node_modules
/monorepoRoot/apps/project2/..
/monorepoRoot/apps/project3/..

delete node_modules and run pnpm install on root
/monorepoRoot/node_modules

try that on yarn

from nuxt.

mklueh avatar mklueh commented on July 20, 2024

@phenomenal-hardy

Thanks for your help.
I'm using Nx and I only declare dependencies in the root, but I've deleted the root node_modules, ran nuxi clean in root and project dirs after upgrading my dependencies, and then ran yarn install again.

The issue still persists sadly and maybe it is something different in my case, idk. Staying on 3.11.1 for now

from nuxt.

danielroe avatar danielroe commented on July 20, 2024

@Wins0309 Check your lockfile. Something is pulling in an older version of Nuxt or nuxt/vite-builder.

from nuxt.

pieer avatar pieer commented on July 20, 2024

I have similar issue:
Package import specifier "#paths" is not defined in package /package.json imported from /.nuxt/dev/index.mjs

I tried all the solution, including checking nuxt/vite-builder version

from nuxt.

danielroe avatar danielroe commented on July 20, 2024

If you are experiencing this and there is no version mismatch, please open a new issue with a reproduction and I'll happily help 🙏

from nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.