webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

Getting unexpected error on Bolt and Stackblitz

Open Selcukis opened this issue 1 year ago • 1 comments

Describe the bug

Bug Description:

I imported my repository to Stackblitz, but I encountered the following error: Invariant: headers() expects to have requestAsyncStorage, none available.

The same code runs successfully on both my local host and Vercel without any issues.

Context:

I initially created this app on bolt.new and would like to continue developing it there. However, I'm unable to proceed due to this error. Request:

How can I resolve this issue and continue developing my app on bolt.new without errors?

Link to the blitz that caused the error

https://stackblitz.com/~/github.com/Selcukis/biyo-frontend-v1

Steps to reproduce

Just try to compile and run my application: https://stackblitz.com/~/github.com/Selcukis/biyo-frontend-v1

Expected behavior

The codebase should run on Stackblitz just as it does on Vercel.

Parity with Local

Screenshots

Screenshot 2024-12-06 at 16 13 52

Platform

Version = 1.84.0
Hash = 3b0b7194bc6b567c2eaf4c96a5759098469dcf59
WebContainer = fc837ba8

Browser name  = Chrome
Full version  = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 128071634,
  "usedJSHeapSize": 120441894,
  "jsHeapSizeLimit": 4294705152
}

Additional context

No response

Selcukis avatar Dec 06 '24 13:12 Selcukis

Hello, I'm having the same issue, working in local dev and not in Stackblitz/Bolt

Valyrox avatar Feb 14 '25 13:02 Valyrox