1 person reported

All time, since Sep 2.

Prefetch crashes shallow navigation

“TypeError: Cannot destructure property 'title' of 'n' as it is undefined.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/next-js/issues/4305/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Shallow navigation crashes after prefetch stores __appRouter marker. In Pages Router, prefetch() checks the client router filter against as but stores the marker under the href pathname, crashing _app.

Is this your bug?

File my report
Where
Pages Router
Error text
TypeError: Cannot destructure property 'title' of 'n' as it is undefined.
Versions
16.4.0-canary.13
Platforms
macOS
How bad
Stops work: a core feature can't be used.

Not quite your bug?

  1. Hash links concatenate fragments4 people
  2. router.refresh() triggers full document reload with parallel route modals2 people
  3. router.refresh() never updates streamed pages in production builds1 person

Original reports2, newest first

  1. Pages Router: shallow getRouteInfo() returns the __appRouter prefetch marker as route info and crashes _appOn GitHub#98181
  2. Pages Router: prefetch() checks the client router filter against as but stores the __appRouter marker under the href pathnameOn GitHub#98180

Do you work on Next.js?

Claim its RAP Sheet to see what your users report and answer them in one place.