Skip to content

pavel-krasnov/next-modal-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a replication of a bug which was introduced in Next 13.4.10. It causes application crash on opening a modal created with parallel routes and route intercepting. The issue: vercel/next.js#56000

Detailed information:

In the file app/items/page.tsx, remove prefetch={false} to get rid of the error. Disabling prefetch introduces the bug.

This is a Next.js project bootstrapped with create-next-app.

Bug info provided by Next.js:

Unhandled Runtime Error

Error: Could not find the module "/home/pavel/projects/modal-test/app/items/layout.tsx#" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
Call Stack
<unknown>
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:327266)
eL
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:327461)
<unknown>
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:341155)
Array.toJSON
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:342345)
stringify
<anonymous>
eV
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:328558)
<unknown>
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:329098)
eJ
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:329358)
Timeout._onTimeout
/home/pavel/projects/modal-test/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (11:326581)
listOnTimeout
node:internal/timers (569:17)
process.processTimers
node:internal/timers (512:7)

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published