Skip to content

v15.5.x not working on Webcontainers #1978

@manarbenkraouda

Description

@manarbenkraouda

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)
Image

Link to the blitz that caused the error

https://stackblitz.com/edit/nextjs-15-broken-on-webcontainers?file=package.json

Steps to reproduce

  1. Visit the Stackblitz project
  2. Run the app
  3. 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

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

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