Babel Decorators Error When Enabling experimental.reactCompiler
#77440
Labels
React
Related to React.
Turbopack
Related to Turbopack with Next.js.
TypeScript
Related to types with Next.js.
Webpack
Related to Webpack with Next.js.
Link to the code that reproduces this issue
https://github.com/shadcn-ui/next-template
To Reproduce
Description
Enabling
experimental.reactCompiler
innext.config.js
causes a Babel error related to missing decorator plugins.Error Message
Current vs. Expected behavior
Steps to Reproduce
experimental.reactCompiler = true
innext.config.js
:tsconfig.json
has the following settings:next dev
ornext build
).Expected Behavior
Next.js should handle decorators properly when
reactCompiler
is enabled.Provide environment information
Operating System: Platform: win32 Arch: x64 Version: Windows 11 Pro Available memory (MB): 16231 Available CPU cores: 4 Binaries: Node: 20.17.0 npm: 10.8.2 Yarn: N/A pnpm: 9.15.4 Relevant Packages: next: 15.1.6 // There is a newer version (15.2.3) available, upgrade recommended! eslint-config-next: 15.1.6 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3
Which area(s) are affected? (Select all that apply)
Turbopack, Webpack, TypeScript, React
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
The text was updated successfully, but these errors were encountered: