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

Official app router example: TypeError: Cannot read properties of undefined (reading 'en') #1071

Closed
3 tasks done
emil0519 opened this issue May 17, 2024 · 1 comment
Closed
3 tasks done
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@emil0519
Copy link

Description

I'm trying to learn next-intl with example code but stuck at this problem. Is there anything wrong with the official example?

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

https://github.com/amannn/next-intl.git

Reproduction description

Reproduction:

  1. git clone https://github.com/amannn/next-intl.git
  2. cd examples/example-app-router
  3. npm i
  4. npm run dev
  5. Switch language with the select on top-right hand corner
  6. Error throw:
    截圖 2024-05-17 下午2 27 28

Expected behaviour

Switch language successfully without throwing error

@emil0519 emil0519 added bug Something isn't working unconfirmed Needs triage. labels May 17, 2024
@amannn
Copy link
Owner

amannn commented May 18, 2024

Hmm, works for me without an issue. Maybe there's an issue with the monorepo setup, you can try to deploy/clone the example as described in the README.

I'll convert this to a discussion since it seems to be a usage question.

Repository owner locked and limited conversation to collaborators May 18, 2024
@amannn amannn converted this issue into discussion #1073 May 18, 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