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
Build error when using react-scripts #2062
Comments
Have you tried updating your Babel config? babel/babel#13907 |
At the moment the babel config is all handled by react-scripts which is on @babel/preset-env@7.20.2. |
Yeah I see, might have to submit a bug to Babel because it looks like it can't parse(?) or transform that minified file probably even though it's valid. |
Actually, I just updated some Babel deps locally, re-built, pasted it in the repro |
There may be a bit of a delay in releasing this fix (will be within the next ~1 week though), so in the meantime anyone encountering this issue, install |
Well it looks like Babel has a fix for it, it seems like a new issue: babel/babel#15300 So although upgrading the build deps fixed it in this library, it may not be necessary anyway with the new Babel version/fix |
I know this isn't directly related to your code, but for others following this ticket I'm seeing a new build error with 7.20.8:
We probably need another bug filed against babel? |
Oof yeah... I think they should revert that rewrite they did for now or something and do more testing against it |
Opened a bug here: babel/babel#15302 |
I've ran into a build issue when using this in a project created with create-react-project.
The same error doesn't occour if I repoint it to use the non-minified mjs file.
Reproduction steps (node 18 or 16)
npx create-react-app test-bug
npm install @floating-ui/react-dom
npm run build
The text was updated successfully, but these errors were encountered: