-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Open
Description
Vue version
3.5.25
Link to minimal reproduction
Any Vue/Nuxt project with Node.js 24
Steps to reproduce
- Use Node.js v24.x (tested on v24.11.0)
- Create or use any Vue 3.5.x project
- Run
npm installorpnpm install - Start the dev server or build
What is expected?
Vue should work with Node.js 24
What is actually happening?
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/decode.js' is not defined by "exports" in node_modules/@vue/compiler-core/node_modules/entities/package.json
at exportsNotFound (node:internal/modules/esm/resolve:313:10)
at packageExportsResolve (node:internal/modules/esm/resolve:661:9)
Node.js 24 enforces stricter ESM exports validation. The [email protected] package (dependency of @vue/compiler-core) uses internal paths like ./lib/decode.js that aren't properly exported in its package.json.
System Info
Node.js: v24.11.0
Vue: 3.5.25
@vue/compiler-core: 3.5.25
entities: 4.5.0 (pinned by @vue/compiler-core)
Any additional comments?
The entities package has been updated significantly - current version is v7.0.0 with proper exports field. However @vue/compiler-core is pinned to entities@^4.5.0.
Suggested fix: Update @vue/compiler-core dependency to entities@^5.0.0 or higher (v5+ has proper ESM exports).
Current workaround: Use Node.js 22 LTS instead of Node.js 24
Metadata
Metadata
Assignees
Labels
No labels