Skip to content

TypeError: decode_js.EntityDecoder is not a constructor #10148

@hatai

Description

@hatai

Vue version

3.4.14

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-5fafk2?file=package.json

Steps to reproduce

i upgrade vue.js version from 3.4.13 to 3.4.14 and then i run yarn workspace vue3 run dev.
but TypeError: decode_js.EntityDecoder is not a constructor is occurred.

so i downgrade vue.js version from v3.4.14 to v3.4.13, error is gone

i think vue.js v3.4.14 is something wrong

What is expected?

no errors should occur

What is actually happening?

❯ yarn workspace vue3 run dev

yarn workspace v1.22.21
yarn run v1.22.21
$ vite
failed to load config from /Users/taigenhamada/Projects/icare/www/app/frontend/vite.config.ts
error when starting dev server:
TypeError: decode_js.EntityDecoder is not a constructor
    at new Tokenizer (/Users/taigenhamada/Projects/icare/www/node_modules/@vitejs/plugin-vue/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:453:28)
    at Object.<anonymous> (/Users/taigenhamada/Projects/icare/www/node_modules/@vitejs/plugin-vue/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:2128:19)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/Users/taigenhamada/Projects/icare/www/node_modules/@vitejs/plugin-vue/node_modules/@vue/compiler-core/index.js:6:20)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /Users/taigenhamada/.asdf/installs/nodejs/18.19.0/bin/node
Arguments: /Users/taigenhamada/.asdf/installs/nodejs/18.19.0/lib/node_modules/yarn/lib/cli.js run dev
Directory: /Users/taigenhamada/Projects/icare/www/app/frontend
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.

System Info

System:
    OS: macOS 13.6.3
    CPU: (8) arm64 Apple M1 Pro
    Memory: 48.80 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - ~/.asdf/installs/nodejs/18.19.0/bin/node
    Yarn: 1.22.21 - ~/.asdf/installs/nodejs/18.19.0/bin/yarn
    npm: 10.2.3 - ~/.asdf/plugins/nodejs/shims/npm
    bun: 1.0.5 - ~/.asdf/shims/bun
  Browsers:
    Chrome: 120.0.6099.216
    Safari: 17.2.1
  npmPackages:
    vue: 3.4.14 => 3.4.14

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions