Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Redux-persist no longer works in rolldown-vite 7.1.19 #457

@RichDom2185

Description

@RichDom2185

Describe the regression

With rolldown-vite 7.1.18, storage.getItem used to work fine. Now it throws an error: Uncaught TypeError: storage.setItem is not a function

Note: Tested with latest Vite at the time of writing (7.1.11) and it works fine.

Reproduction

https://stackblitz.com/edit/vitejs-rolldown-vite-vm6wdwjv?file=README.md

Expected Behavior

It should work normally (reverting to 7.1.18 works fine), with redux-persist rehydrating the store (even if it's on the initial load without any persisted state)

Actual Behavior

The entire app crashes due to the type error during store initialization

Steps to Reproduce

  1. Clone the linked StackBlitz
  2. Notice the app will not start
  3. View the above error message in the console/DevTools
  4. Edit the version of rolldown-vite in package.json to 7.1.18
  5. The app works

System Info

NA, affecting all environments

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions