-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Description
Describe the bug
## Error Type
Runtime InvariantError
## Error Message
Invariant: Expected workUnitAsyncStorage to have a store. This is a bug in Next.js.
Next.js version: 15.5.3 (Webpack)

Link to the blitz that caused the error
https://stackblitz.com/edit/nextjs-15-broken-on-webcontainers?file=package.json
Steps to reproduce
- Visit the Stackblitz project
- Run the app
- See this error message:
## Error Type
Runtime InvariantError
## Error Message
Invariant: Expected workUnitAsyncStorage to have a store. This is a bug in Next.js.
Next.js version: 15.5.3 (Webpack)
Expected behavior
None actually, I though it would be good to document in case other people encounter this issue while working on Webcontainer environments such as Bolt.new. I couldn't fine anything related to this issue as of 2025-09-20
Parity with Local
- I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Operating System:
Platform: linux
Arch: x64
Version: Ubuntu 20.04.0 LTS Sat Sep 20 2025 20:09:44 GMT+0200 (heure d’été d’Europe centrale)
Available memory (MB): NaN
Available CPU cores: 8
Binaries:
Node: 20.19.1
npm: 10.8.2
Yarn: 1.22.19
pnpm: 8.15.6
Relevant Packages:
next: 15.5.3 // Latest available version is detected (15.5.3).
eslint-config-next: N/A
react: 19.1.1
react-dom: 19.1.1
typescript: 5.9.2
Next.js Config:
output: N/A
Additional context
No response
adileo, superguigui, marcofugaro, chakrihacker, justinmccraw and 1 more
Metadata
Metadata
Assignees
Labels
No labels