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

[BUG] - Module not found: Package path ./client is not exported from package #414

Open
PontusTideman opened this issue Aug 7, 2024 · 1 comment

Comments

@PontusTideman
Copy link

Issue Summary

⨯ ./app/components/reusables/LanguageSelector.tsx:6:1

` 4 |
5 | // Next Intl

6 | import { useRouter } from "next-intl/client"; // This useRouter is wrapped with next/navigation useRouter
| ^
7 |
8 | // ShadCn
9 | import {`

Environment

  • Browser/Platform: [Insert Browser/Platform Name and Version]

Chrome latest version on macOS Sonoma 14.5.

Steps to Reproduce

  1. [First step to reproduce the issue]
    Clone from repo, update packages to latest versions.

  2. [Second step to reproduce the issue]
    npm run dev ends up with the above error code and also in Chrome.

Expected Behavior

Actual Behavior

Error code as above and below in screenshot.

Screenshots/Logs

Screenshot 2024-08-07 at 15 02 16

Additional Information

/client is removed from latest version. https://next-intl-docs.vercel.app/docs/usage/configuration#nextintlclientprovider

Possible Solutions

Update code to work with latest version of next-intl.


Acceptance Criteria

  • [ x] The issue is confirmed and reproducible.
  • [ x] Relevant details about the environment are provided.
  • [ x] Steps to reproduce are clear and concise.
  • [ x] Expected and actual behavior are described.
  • [ x] Screenshots/logs (if applicable) are attached.
  • [ x] Any additional relevant information is included.

@sikaili99
Copy link

Got a fix, I will raise a PR for this.

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