Skip to content
Discussion options

You must be logged in to vote

@dieguezz Unfortunately, this doesn’t work because babel-plugin-react-compiler processes server components, and Next runs with errors like Cannot read properties of undefined (reading 'H') on server components, which makes it impossible to work. A few hours of debugging led me to patch babel-plugin-react-compiler, and now it works.

diff --git a/dist/index.js b/dist/index.js
index ac4a79e741a176252312419e439be74cc80998e5..61c2c7d8cf893441fed4ddfff676ffed7a2ca8ce 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -108409,6 +108409,11 @@ function matchCompilerDiagnostic(badReference, transformErrors) {
 
 // src/Babel/BabelPlugin.ts
 var ENABLE_REACT_COMPILER_TIMINGS = process.env["ENABLE_REA…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vnahornyi
Comment options

Answer selected by vnahornyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants