Comments (9)
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.
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.
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.
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.
I First thought it worked but it didn't
yarn dedupe --check
says nothing to dedupe in my projectyarn 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.
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.
@Wins0309 Check your lockfile. Something is pulling in an older version of Nuxt or nuxt/vite-builder.
from nuxt.
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.
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)
- Tailwindcss added at last is not applied HOT 5
- Disabling SSR prevents remaining CSS from loading HOT 5
- Error: Cannot find module punycode/ HOT 9
- Img @error not working HOT 2
- useHead undefined after initiating a regex (since monday) HOT 4
- keepalive not work HOT 1
- String vs object errors with `createError` and accessing server-thrown errors on client
- Tailwind css issue related to CSS specificity on dev server HOT 1
- keep alive caches are destroyed when visit keep alive excluded page HOT 3
- The package generated under the .output/server/node_modules file is a hyperlink. HOT 2
- 'text/html' is not a valid JavaScript MIME type. HOT 2
- This module cannot be imported in the Vue part of your app. [importing @nuxt/kit from app.vue] causing page to not work HOT 5
- If a component uses empty data in `useFetch`, then `clearError` will be invalidated HOT 2
- Cache control header missing in response headers (while using nitro.publicAssets) HOT 7
- [nuxt] [request error] [unhandled] [500] _fetch is not a function HOT 3
- feat: support passing options to `TypedRouterOptions` when using `experimental.typedPages` HOT 3
- Dynamic layouts HOT 4
- Previous route info HOT 2
- Imported CSS files not correctly injected in circumstances involving lazy-loaded components HOT 1
- Nuxt 3 Dev build time is very slow in WSL 2 Linux Ubuntu ~ ranging up to 30 seconds just to refresh changes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.