Skip to content

Errors from @payloadcms+plugin-seo@3.67.0 after upgrade to nextjs 16.0.7 when I do some file changes in the frontend #14860

@Maofree

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+test@1.57.0_react-dom@19.2.1_react@19.2.1__react@19.2.1_sass@1.77.4/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+test@1.57.0_react-dom@19.2.1_react@19.2.1__react@19.2.1_sass@1.77.4/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+test@1.57.0_react-dom@19.2.1_react@19.2.1__react@19.2.1_sass@1.77.4/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+test@1.57.0_react-dom@19.2.1_react@19.2.1__react@19.2.1_sass@1.77.4/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+test@1.57.0_react-dom@19.2.1_react@19.2.1__react@19.2.1_sass@1.77.4/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+react@19.2.7_monaco-editor@0.54.0_next@16.0.7_@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+react@19.2.7_monaco-editor@0.54.0_next@16.0.7_@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+react@19.2.7_monaco-editor@0.54.0_next@16.0.7_@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+react@19.2.7_monaco-editor@0.54.0_next@16.0.7_@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+react@19.2.7_monaco-editor@0.54.0_next@16.0.7_@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugarea: uiRelated to the admin panel.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions