Skip to content

Next 15 breaks with React Compiler enabled #15457

New issue

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

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

Already on GitHub? Sign in to your account

Closed
dcramer opened this issue Feb 20, 2025 · 4 comments
Closed

Next 15 breaks with React Compiler enabled #15457

dcramer opened this issue Feb 20, 2025 · 4 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/[email protected]_@[email protected]_@[email protected][email protected]_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/[email protected]_@[email protected]_@[email protected][email protected]_ma27yg72jdhr6qts2cf3wzxsmu/node_modules/next/dist/client/components/forbidden-error.js [app-rsc] (ecmascript, Next.js server component)", MODULE_3 => "[project]/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]_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.

@s1gr1d s1gr1d added the Package: nextjs Issues related to the Sentry Nextjs SDK label Mar 4, 2025
@lforst
Copy link
Member

lforst commented Mar 5, 2025

I actually cannot repro this.

@esamani77
Copy link

I'm facing the same issue.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 16, 2025
@andreiborza
Copy link
Member

andreiborza commented Mar 17, 2025

Hi, I'm also not able to reproduce this. Could you please share a reproduction repo?

@mydea
Copy link
Member

mydea commented May 7, 2025

Why was this issue closed?

This issue hasn't been touched recently and no longer seems relevant.
Hence, we're closing it to maintain a clean and transparent backlog.

Please feel free to leave a comment if you think this issue should be reopened.

@mydea mydea closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

8 participants
@dcramer @mydea @stephanie-anderson @lforst @s1gr1d @esamani77 @andreiborza and others