Skip to content

@vue/compiler-core incompatible with Node.js 24 - entities package ERR_PACKAGE_PATH_NOT_EXPORTED #14159

@productdevbook

Description

@productdevbook

Vue version

3.5.25

Link to minimal reproduction

Any Vue/Nuxt project with Node.js 24

Steps to reproduce

  1. Use Node.js v24.x (tested on v24.11.0)
  2. Create or use any Vue 3.5.x project
  3. Run npm install or pnpm install
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions