Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting unexpected error on Bolt and Stackblitz #1656

Open
1 task done
Selcukis opened this issue Dec 6, 2024 · 1 comment
Open
1 task done

Getting unexpected error on Bolt and Stackblitz #1656

Selcukis opened this issue Dec 6, 2024 · 1 comment

Comments

@Selcukis
Copy link

Selcukis commented Dec 6, 2024

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

@Valyrox
Copy link

Valyrox commented Feb 14, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants