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

Next-intl + SSG in build mode, interception routing does not work properly #642

Closed
daofeng-1998 opened this issue Nov 17, 2023 · 3 comments
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@daofeng-1998
Copy link

Description

Next-intl + SSG is used. In dev mode, interception routing works normally, but not in build mode.
Node: 18.11.0

Mandatory reproduction URL (CodeSandbox or GitHub repository)

https://github.com/daofeng-1998/next-intl-intercepting-route-issue

Reproduction description

Steps to reproduce:

  1. Open reproduction && pnpm i && pnpm run build && pnpm run start
  2. Click on Go Func -> Click on Login
  3. See error:

Expected behaviour

Expect it to work

@daofeng-1998 daofeng-1998 added bug Something isn't working unconfirmed Needs triage. labels Nov 17, 2023
@amannn
Copy link
Owner

amannn commented Nov 17, 2023

This might be a duplicate of #255. Parallel and intercepted routes currently have some rough edges as far as I know. I'm unfortunately not aware of anything that can currently be fixed on the next-intl side.

@louisthomaspro
Copy link

@amannn is it also the cause of:
You cannot have two parallel pages that resolve to the same path. Please check /[locale]/(main)/@modal/(.)album/[id]/quickview/page and /[locale]/[...rest]/page. Refer to the route group docs for more information: https://nextjs.org/docs/app/building-your-application/routing/route-groups ?

@amannn
Copy link
Owner

amannn commented Nov 23, 2023

@louisthomaspro Not sure to be honest! I haven't used parallel routes so far since users have reported upstream issues on the Next.js side.

I'll close this as a duplicate of #255.

@amannn amannn closed this as completed Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

3 participants