next.js icon indicating copy to clipboard operation
next.js copied to clipboard

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

Open typeofweb opened this issue 1 year ago • 0 comments

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 avatar Aug 26 '24 12:08 typeofweb