Skip to content

fix: Compatibility with Node 25.0.0 localStorage.getItemΒ #898

@silverbackdan

Description

@silverbackdan

πŸ› The bug

I think this may be related to this issue that was fixed a few days ago: vuejs/devtools#977

In Node v25 builds my tests fail with a stack-trace leading to the devtools

TypeError: localStorage.getItem is not a function
 ❯ getTimelineLayersStateFromStorage ../../node_modules/.pnpm/@[email protected]/node_modules/@vue/devtools-kit/dist/index.js:2272:30
 ❯ initStateFactory ../../node_modules/.pnpm/@[email protected]/node_modules/@vue/devtools-kit/dist/index.js:2565:26
 ❯ ../../node_modules/.pnpm/@[email protected]/node_modules/@vue/devtools-kit/dist/index.js:2569:68

πŸ› οΈ To reproduce

Sorry - I don't know if this is required for this issue, but it's 1:10am here so I just wanted to get this raised.

🌈 Expected behavior

Build successfully on latest Node v25 release from 6 days ago.

ℹ️ Additional context

I think the issue lies here:

'@vue/devtools-core': ^7.7.7

And the issue is fixed in vue-devtools 8.0.3 - can we just update this dep?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions