-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
[Playground Bug]: Unexpected token, expected "{" #31601
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
After my first contribution to react-compiler, I wanted to fix this too, but it seems already fixed? I tried to install |
ok, I found why I couldn't see optimized components with implicit returns, setting updateSo I consider this as a still a bug since |
I'm closing this because the playground error is no longer there, it doesn't optimize the arrow function components but that is a separate issue. |
What kind of issue is this?
Link to repro
https://playground.react.dev/#N4Igzg9grgTgxgUxALhAejQAgPIAcEB2mcEBkANgpgIYEAmmUBJAti4QC4A6BGxpYDpgCiMGAEZMAXkwAKAJTSAfJgA8dAJYA3TGiUBuHnxJkhomACZpcxVJWz123UvmHeWE4JFiAzNcc6ejxGWAAqABYaYJgA7hAwANbRAGYaBAgh-KaYAMLWCsqYwJmYmDAIHLBEAc6ZAL4gdUA
Repro steps
Any component created without curly braces will create an error in the console no compiler output is shown.
See playground link.
How often does this bug happen?
Every time
What version of React are you using?
react@rc
What version of React Compiler are you using?
19.0.0-beta-8a03594-20241020
The text was updated successfully, but these errors were encountered: