Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

use app router without i18n routing get an error when build #1323

Closed
3 tasks done
aurora-lch opened this issue Sep 5, 2024 · 1 comment
Closed
3 tasks done

use app router without i18n routing get an error when build #1323

aurora-lch opened this issue Sep 5, 2024 · 1 comment
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@aurora-lch
Copy link

aurora-lch commented Sep 5, 2024

Description

use this example
https://github.com/amannn/next-intl/blob/main/examples/example-app-router-without-i18n-routing/src/i18n/request.ts

Error: headers was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context

Verifications

  • I've verified that the problem I'm experiencing isn't covered in the docs.
  • I've searched for similar, existing issues on GitHub and Stack Overflow.
  • I've compared my app to a working example to look for differences.

Mandatory reproduction URL

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Click on …
  3. See error: …

Expected behaviour

not error

@aurora-lch aurora-lch added bug Something isn't working unconfirmed Needs triage. labels Sep 5, 2024
@amannn
Copy link
Owner

amannn commented Sep 5, 2024

Moving this to a discussion since this seems to be a usage question regarding Next.js itself.

Repository owner locked and limited conversation to collaborators Sep 5, 2024
@amannn amannn converted this issue into discussion #1325 Sep 5, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants