Skip to content

Error after udpating to NodeJS 24.11 #356

@nicovil

Description

@nicovil

Describe the bug
I updated to NodeJS 24.11 today and build is not working anymore (neither DEV or BUILD options)

To Reproduce
Steps to reproduce the behavior:

  1. Update to latest NodeJS version 24.11
  2. Try to build again

Expected behavior
NPM run build
NPM run dev

Both commands should work, first one creating a release build, and second one starting debug.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11 x64
  • Browser Chrome
  • Version 142.0.7444.176

** Error trace when using npm run build **

failed to load config from C:\Projects\testextension\my-webext\vite.chrome.config.ts
error during build:
TypeError: Cannot read properties of undefined (reading 'toString')
at file:///C:/Projects/testextension/my-webext/node_modules/.vite-temp/vite.chrome.config.ts.timestamp-1764455172418-ee425223d3d938.mjs:189:74
at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:671:26)
at async loadConfigFromBundledFile (file:///C:/Projects/testextension/my-webext/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:49451:15)
at async bundleAndLoadConfigFile (file:///C:/Projects/testextension/my-webext/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:49294:22)
at async loadConfigFromFile (file:///C:/Projects/testextension/my-webext/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:49257:44)
at async resolveConfig (file:///C:/Projects/testextension/my-webext/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:48752:24)
at async createBuilder (file:///C:/Projects/testextension/my-webext/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46736:18)
at async CAC. (file:///C:/Projects/testextension/my-webext/node_modules/vite/dist/node/cli.js:862:23)
 ELIFECYCLE  Command failed with exit code 1.


** Error when running npm run dev **

vite-vue3-browser-extension-v3@0.0.1 dev
concurrently "pnpm run dev:chrome" "pnpm dev:firefox"

[0] Error occurred when executing command: pnpm run dev:chrome
[0] Error: spawn cmd.exe ENOENT
[0] at ChildProcess._handle.onexit (node:internal/child_process:286:19)
[0] at onErrorNT (node:internal/child_process:484:16)
[0] at process.processTicksAndRejections (node:internal/process/task_queues:89:21)
[1] Error occurred when executing command: pnpm dev:firefox
[1] Error: spawn cmd.exe ENOENT
[1] at ChildProcess._handle.onexit (node:internal/child_process:286:19)
[1] at onErrorNT (node:internal/child_process:484:16)
[1] at process.processTicksAndRejections (node:internal/process/task_queues:89:21)
[1] pnpm dev:firefox exited with code -4058
[0] pnpm run dev:chrome exited with code -4058

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions