asyncstorage on web: error reading from async storage ReferenceError: window is not defined
Author: dannyhwCreated Aug 9, 2025Updated Aug 9, 2025
Describe the bug A clear and concise description of what the bug is.
When you run on the web you might see this error
storybook-log: error reading from async storage ReferenceError: window is not defined
A workaround is to use single output for the expo web bundle
"web": {
"favicon": "./assets/favicon.png",
"bundler": "metro",
"output": "single"
},
Source: storybookjs/react-native