Repository navigation
Errors from @[email protected] after upgrade to nextjs 16.0.7 when I do some file changes in the frontend #14860
Description
Describe the Bug.
Hi
With nextjs 15.5.7 everything worked fine, then I updated to nextjs 16.0.7 and everything works fine there too. Then when I make changes to a tsx file or collections, an error pops up on the front panel that blocks the development environment. Even if I restart it, it still shows the same error and I can't do anything on the front panel. The error goes away if I run pnpm build and then run pnpm dev again.
But I have to do this every time I make changes to the project.
On the payload control panel side, there are no errors; it continues to work even though these errors appear on the frontend.
`## Error Type
Runtime TypeError
Error Message
chunk.reason.enqueueModel is not a function
Next.js version: 16.0.7 (Turbopack)
chunk.reason.enqueueModel is not a function
Call Stack
5
Hide 5 ignore-listed frame(s)
resolveModelChunk
node_modules/.pnpm/next@16.0.7_@babel+core@7.28.5_@playwright[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js (1646:52)
processFullStringRow
node_modules/.pnpm/next@16.0.7_@babel+core@7.28.5_@playwright[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js (4388:19)
processFullBinaryRow
node_modules/.pnpm/next@16.0.7_@babel+core@7.28.5_@playwright[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js (4248:7)
processBinaryChunk
node_modules/.pnpm/next@16.0.7_@babel+core@7.28.5_@playwright[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js (4461:15)
progress
node_modules/.pnpm/next@16.0.7_@babel+core@7.28.5_@playwright[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js (4733:9)
Error Type
Runtime Error
Error Message
Could not find the module "[project]/node_modules/.pnpm/@payloadcms+plugin-seo@3.67.0_@types[email protected][email protected][email protected]_@bab_7c24e66c3e9c02aca4b1e2bdb898f232/node_modules/@payloadcms/plugin-seo/dist/fields/Preview/PreviewComponent.js#PreviewComponent" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
at stringify (<anonymous>:1:18)
Next.js version: 16.0.7 (Turbopack)
⨯ Error: Could not find the module "[project]/node_modules/.pnpm/@payloadcms+plugin-seo@3.67.0_@types[email protected][email protected][email protected]_@bab_7c24e66c3e9c02aca4b1e2bdb898f232/node_modules/@payloadcms/plugin-seo/dist/fields/Preview/PreviewComponent.js#PreviewComponent" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
at stringify () {
digest: '969785482'
}
Server Error: Could not find the module "[project]/node_modules/.pnpm/@payloadcms+plugin-seo@3.67.0_@types[email protected][email protected][email protected]_@bab_7c24e66c3e9c02aca4b1e2bdb898f232/node_modules/@payloadcms/plugin-seo/dist/fields/Preview/PreviewComponent.js#PreviewComponent" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
at stringify (:1:18) {
environmentName: 'Server',
digest: '969785482'
}
⨯ Error: Could not find the module "[project]/node_modules/.pnpm/@payloadcms+plugin-seo@3.67.0_@types[email protected][email protected][email protected]_@bab_7c24e66c3e9c02aca4b1e2bdb898f232/node_modules/@payloadcms/plugin-seo/dist/fields/Preview/PreviewComponent.js#PreviewComponent" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
at stringify (:1:18) {
environmentName: 'Server',
digest: '969785482'
}
⨯ Error: Could not find the module "[project]/node_modules/.pnpm/@payloadcms+plugin-seo@3.67.0_@types[email protected][email protected][email protected]_@bab_7c24e66c3e9c02aca4b1e2bdb898f232/node_modules/@payloadcms/plugin-seo/dist/fields/Preview/PreviewComponent.js#PreviewComponent" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
at stringify (:1:18) {
environmentName: 'Server',
digest: '969785482',
page: '/it/noleggio-eventi/cerimonie-matrimoni'
}
GET /it/noleggio-eventi/cerimonie-matrimoni 500 in 14.0s (compile: 13.8s, proxy.ts: 12ms, render: 102ms)`
This is the first time I've reported an error on payloadcms and it's the first project I've used it.
Reproduction Steps
I think it's a bit difficult to tell you how to reproduce the error.
In the logs I posted, I see the presence of PreviewComponent.js, but I haven't set the preview; I don't need it.
Then I see the presence of the @payloadcms+plugin-seo plugin that I use.
It is only present when I use pnpm dev
Environment Info
Payload: 3.67.0
Nextjs: 16.0.7
Nodejs: 24.10.1
pnpm: 10
Activity
AlessioGr commentedon Dec 8, 2025
Duplicate of #14419, fixed by latest Next.js canary
Maofree commentedon Dec 8, 2025
Hi @AlessioGr
thanks
I saw that ticket, which was quite similar to mine.
Do you think the fix will be included in version 16.0.8?
AlessioGr commentedon Dec 8, 2025
It will probably be included in 16.1.0, not 16.0.8. However, you can use it now by updating to 16.1.0-canary.15
Maofree commentedon Dec 8, 2025
I have now updated to version 16.1.0-canary.15 and I confirm that the problem has been solved
github-actions commentedon Dec 16, 2025
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.