Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Next 15 breaks with React Compiler enabled #15457

Open
dcramer opened this issue Feb 20, 2025 · 0 comments
Open

Next 15 breaks with React Compiler enabled #15457

dcramer opened this issue Feb 20, 2025 · 0 comments

Comments

@dcramer
Copy link
Member

dcramer commented Feb 20, 2025

⨯ Error: Module [project]/app/global-error.tsx [app-ssr] (ecmascript) was instantiated because it was required from module [project]/node_modules/.pnpm/next@15.1.7_@babel+core@7.26.0_@opentelemetry+api@1.9.0_babel-plugin-react-compiler@19.0.0-be_ma27yg72jdhr6qts2cf3wzxsmu/node_modules/next/dist/esm/build/templates/app-page.js?page=/games/[gameId]/page { GLOBAL_ERROR_MODULE => "[project]/app/global-error.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_0 => "[project]/app/layout.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_1 => "[project]/app/not-found.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_2 => "[project]/node_modules/.pnpm/next@15.1.7_@babel+core@7.26.0_@opentelemetry+api@1.9.0_babel-plugin-react-compiler@19.0.0-be_ma27yg72jdhr6qts2cf3wzxsmu/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/next@15.1.7_@babel+core@7.26.0_@opentelemetry+api@1.9.0_babel-plugin-react-compiler@19.0.0-be_ma27yg72jdhr6qts2cf3wzxsmu/node_modules/next/dist/client/components/unauthorized-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_4 => "[project]/app/global-error.tsx [app-rsc] (ecmascript, Next.js server component)", MODULE_5 => "[project]/app/games/[gameId]/page.tsx [app-rsc] (ecmascript, Next.js server component)" } [app-rsc] (ecmascript) <locals>, but the module factory is not available. It might have been deleted in an HMR update.
    at JSON.parse (<anonymous>)
    at JSON.parse (<anonymous>)

9.1.0

Repro will be possible in any next 15 project by enabing react compiler.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant