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

Error: Invariant: headers() expects to have requestAsyncStorage, none available. #16

Closed
weeny-V opened this issue Sep 10, 2023 · 6 comments

Comments

@weeny-V
Copy link

weeny-V commented Sep 10, 2023

When I'm trying to set 'export const runtime = "edge"' and after adding this line all i18n is broken
image

@i18nexus
Copy link
Owner

That interesting. Can you tell me what version of next you’re using?

@weeny-V
Copy link
Author

weeny-V commented Sep 12, 2023

version of next is 13.4.19

@i18nexus
Copy link
Owner

Unfortunately we can't reproduce this. Are you able to provide a minimal reproducible example?

@weeny-V
Copy link
Author

weeny-V commented Sep 14, 2023

yeah, sure
First screenshot with all your settings and work correctly:
267887791-433b20ed-b1fc-4e3b-bf56-0e52f3e2e524
The second screenshot with runtime value does not work:
267888185-4603bbac-90e5-4be5-a429-3b8a4a1a3a5e
267888555-a1710e56-bea2-4b27-808f-39ed3dce0204

@i18nexus
Copy link
Owner

i18nexus commented Sep 14, 2023

After some research, there is an open issue on the Next repo about this: vercel/next.js#52176

There appears to be a bug when using headers in the edge runtime on Windows OS.

Unfortunately there's not much we can do until this is resolved in Next.

@i18nexus
Copy link
Owner

We are going to close this issue since it’s a bug in Next and not with next-i18n-router.

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