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

Catch all route is unexpectedly activated when combined with parallel intercepting route in next dev --turbo #69299

Closed
typeofweb opened this issue Aug 26, 2024 · 1 comment · Fixed by #69929
Labels
bug Issue was opened via the bug report template. linear: turbopack Confirmed issue that is tracked by the Turbopack team. locked Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes. Turbopack Related to Turbopack with Next.js.

Comments

@typeofweb
Copy link
Contributor

Link to the code that reproduces this issue

https://github.com/typeofweb/repro-nextjs-intercepting-catchall

To Reproduce

  1. Clone the repository
  2. Run pnpm install
  3. Run pnpm dev
    1. Open http://localhost:3000
    2. Click on the link "Open cart"
    3. Observe correct behavior where the catch all route is not used and the intercepting parallel route is used.
  4. Run pnpm dev --turbo
    1. Open http://localhost:3000
    2. Click on the link "Open cart"
    3. Observe incorrect behavior where the catch all route is used together with the intercepting parallel route.

Current vs. Expected behavior

Expected (the catch all route is not activated):

Screenshot 2024-08-26 at 14 06 27

Unexpected (the catch all route is activated):

Screenshot 2024-08-26 at 14 07 05

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.0.0: Mon Aug 12 21:29:00 PDT 2024; root:xnu-11215.1.10~5/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 8
Binaries:
  Node: 20.16.0
  npm: 10.8.1
  Yarn: N/A
  pnpm: 9.8.0
Relevant Packages:
  next: 15.0.0-canary.130 // Latest available version is detected (15.0.0-canary.130).
  eslint-config-next: N/A
  react: 19.0.0-rc-b57d2823-20240822
  react-dom: 19.0.0-rc-b57d2823-20240822
  typescript: 5.5.4
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Parallel & Intercepting Routes, Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

@typeofweb typeofweb added the bug Issue was opened via the bug report template. label Aug 26, 2024
@github-actions github-actions bot added Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes. Turbopack Related to Turbopack with Next.js. labels Aug 26, 2024
@timneutkens timneutkens added the linear: turbopack Confirmed issue that is tracked by the Turbopack team. label Aug 26, 2024
ForsakenHarmony added a commit that referenced this issue Sep 17, 2024
### What?

Intercepting routes should only override the slot they are in and not
affect other parts of the tree.
This PR makes sure we replace all other slots with the default route.

Closes PACK-3219
Fixes #69299
Closes #69575
Copy link
Contributor

github-actions bot commented Oct 2, 2024

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot added the locked label Oct 2, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. linear: turbopack Confirmed issue that is tracked by the Turbopack team. locked Parallel & Intercepting Routes Related to Parallel and/or Intercepting routes. Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants