Skip to content

Errors from @[email protected] after upgrade to nextjs 16.0.7 when I do some file changes in the frontend #14860

Closed as duplicate

Description

@Maofree

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.

Image Image

package.json

`## 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

  1. added
    status: needs-triage
    area: ui
    on Dec 8, 2025
  2. removed
    status: needs-triage
    on Dec 8, 2025
  3. added
    status: needs-triage
    on Dec 8, 2025
  4. AlessioGr commented on Dec 8, 2025

    @AlessioGr
    Member

    Duplicate of #14419, fixed by latest Next.js canary

  5. removed
    status: needs-triage
    on Dec 8, 2025
  6. Maofree commented on Dec 8, 2025

    @Maofree
    Author

    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?

  7. AlessioGr commented on Dec 8, 2025

    @AlessioGr
    Member

    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

  8. Maofree commented on Dec 8, 2025

    @Maofree
    Author

    I have now updated to version 16.1.0-canary.15 and I confirm that the problem has been solved

  9. github-actions commented on Dec 16, 2025

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  10. locked as resolved and limited conversation to collaborators on Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugarea: ui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions