Skip to content

Local storage error with Node 25.2.0 #1005

@skirtles-code

Description

@skirtles-code

The fix applied to 8.0.3 no longer works for Node 25.2.0.

Using npm create vue@latest with all the default options is enough to reproduce this problem for me, with npm install and npm run dev.

The error is:

error when starting dev server:
SecurityError: Cannot initialize local storage without a `--localstorage-file` path
    at Object.get [as localStorage] (node:internal/webstorage:28:17)
    at get localStorage (node:internal/util:660:20)
    at getTimelineLayersStateFromStorage (file:///tmp/new-project/node_modules/@vue/devtools-kit/dist/index.js:626:2)
    at initStateFactory (file:///tmp/new-project/node_modules/@vue/devtools-kit/dist/index.js:888:24)
    at file:///tmp/new-project/node_modules/@vue/devtools-kit/dist/index.js:891:23
    at ModuleJob.run (node:internal/modules/esm/module_job:413:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:654:26)
    at async loadConfigFromBundledFile (file:///tmp/new-project/node_modules/vite/dist/node/chunks/config.js:36521:12)
    at async bundleAndLoadConfigFile (file:///tmp/new-project/node_modules/vite/dist/node/chunks/config.js:36415:17)
    at async loadConfigFromFile (file:///tmp/new-project/node_modules/vite/dist/node/chunks/config.js:36382:42)

#977 and #987 are related, and include some discussion of this same problem, but those issues were for slightly different problems and not specifically the Node 25.2.0 problem I've outlined above.

I believe this is caused by this change in Node: nodejs/node#60351.

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