devtools
devtools copied to clipboard
CodedError: [DF0020] when using devtools
Describe the bug
Create a new vue project with pnpm create vue, add @vitejs/devtools, and run dev server with pnpm run dev, open browser and auth, get this errors in console:
[DF0020] RPC function "devtoolskit:internal:messages:list" declares `jsonSerializable: true` but the value at "[0]" is a undefined.
├▶ hint: Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape.
╰▶ see: https://devfra.me/errors/df0020
Uncaught (in promise) CodedError: [DF0020] RPC function "devtoolskit:internal:messages:list" declares `jsonSerializable: true` but the value at "[0]" is a undefined.
Reproduction
https://github.com/tbontb-iaq/vite-devtools-bug
System Info
System:
OS: Linux 7.0 cpe:/o:nixos:nixos:25.11 25.11 (Xantusia)
CPU: (16) x64 AMD Ryzen 7 8845H w/ Radeon 780M Graphics
Memory: 12.00 GB / 27.15 GB
Container: Yes
Shell: 5.9 - /run/current-system/sw/bin/zsh
Binaries:
Node: 24.15.0 - /home/jin/.vite-plus/js_runtime/node/24.15.0/bin/node
Yarn: 1.22.22 - /home/jin/.vite-plus/js_runtime/node/24.15.0/bin/yarn
npm: 11.13.0 - /home/jin/.vite-plus/js_runtime/node/24.15.0/bin/npm
pnpm: 10.33.0 - /home/jin/.vite-plus/js_runtime/node/24.15.0/bin/pnpm
Deno: 2.6.10 - /etc/profiles/per-user/jin/bin/deno
Browsers:
Firefox: 150.0.1
Firefox Developer Edition: 150.0.1
Used Package Manager
pnpm
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a minimal reproducible of the bug.
Possibly a duplicate of #325.