We’ve upgraded to the latest version of @plasmicapp/loader-nextjs (^1.0.407), however, we’re still getting the above issue:
Error: Failed to collect configuration for /[locale]/[[...page]]
at <unknown> (/Users/casper/Developer/work/stampix/webshop/node_modules/.pnpm/next@15.0.3_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.0_react-dom@19._2kx6z4kmkiodnzrs3be42byaru/node_modules/next/dist/build/utils.js:1131:23)
at async Span.traceAsyncFn (/Users/casper/Developer/work/stampix/webshop/node_modules/.pnpm/next@15.0.3_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.0_react-dom@19._2kx6z4kmkiodnzrs3be42byaru/node_modules/next/dist/trace/trace.js:153:20) {
[cause]: TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
at 703 (/Users/casper/Developer/work/stampix/webshop/apps/storefront/.next/server/app/[locale]/(marketing)/[[...page]]/page.js:9:15715)
at t (/Users/casper/Developer/work/stampix/webshop/apps/storefront/.next/server/webpack-runtime.js:1:485)
at 12819 (/Users/casper/Developer/work/stampix/webshop/apps/storefront/.next/server/app/[locale]/(marketing)/[[...page]]/page.js:8:43563)
at t (/Users/casper/Developer/work/stampix/webshop/apps/storefront/.next/server/webpack-runtime.js:1:485)
at 36673 (/Users/casper/Developer/work/stampix/webshop/apps/storefront/.next/server/app/[locale]/(marketing)/[[...page]]/page.js:1:3242)
at Function.t (/Users/casper/Developer/work/stampix/webshop/apps/storefront/.next/server/webpack-runtime.js:1:485)
at async getLayoutOrPageModule (/Users/casper/Developer/work/stampix/webshop/node_modules/.pnpm/next@15.0.3_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.0_react-dom@19._2kx6z4kmkiodnzrs3be42byaru/node_modules/next/dist/server/lib/app-dir-module.js:37:15)
at async collectAppPageSegments (/Users/casper/Developer/work/stampix/webshop/node_modules/.pnpm/next@15.0.3_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.0_react-dom@19._2kx6z4kmkiodnzrs3be42byaru/node_modules/next/dist/build/segment-config/app/app-segments.js:50:45)
at async (/Users/casper/Developer/work/stampix/webshop/node_modules/.pnpm/next@15.0.3_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.0_react-dom@19._2kx6z4kmkiodnzrs3be42byaru/node_modules/next/dist/build/utils.js:1129:28)
}
More specifically, Plasmic is using React’s SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?:
Are there any drawbacks to using this experimental solution? We can’t easily switch back to Pages Router at the moment
Edit: seems like this solution won’t work since we’d like to have these pages be static instead of SSR. We don’t have access to searchParams on static pages
The drawbacks are mostly related to UX/DX, limitations of what you can do in Plasmic + RSC and some hacky lines of code to be able to make it work (as you saw, it’s necessary to access some internals of React).
Thanks! I’ve upgraded to .408 and it works with the Pages Router solution in App Router. Will continue using that for now unless you see issues with that performance/compat wise?
I know you are not currently focusing on an update, but I wanted to leave a comment in case you also come across this.
We use the app router with @plasmicapp/nextjs-app-router and after upgrading to Next.js 15 / React 19 we get the following error in Plasmic Studio (not next dev/build):
I then created a new project with create-plasmic-app (Pages Router) and the error occurs there too.
As soon as we use Ant Design Pro Components (Calendar/Table/…) and the plasmic-rich-components package is imported, the error occurs.
This is currently blocking our upgrade to Next.js 15 - everything else seems to work so far.
We do have our pages already in production, so we’re really looking forward to any updates regarding Next.js 15 / React 19 support
Can you give us any timeline / estimates when you’re gonna support Next.js 15 / React 19? I just want to better plan our internal issues and project status.