Skip to content
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

Failed to Compile due to babel-loaders #36

Open
joaortizro opened this issue Aug 6, 2021 · 4 comments
Open

Failed to Compile due to babel-loaders #36

joaortizro opened this issue Aug 6, 2021 · 4 comments

Comments

@joaortizro
Copy link

joaortizro commented Aug 6, 2021

when installing on a new react project , babel loaders suggest to add extra configuration.

Screenshot_20210806_154750

@joaortizro
Copy link
Author

anyone having the same problems?

@arnog
Copy link

arnog commented Aug 21, 2021

This is a duplicate of arnog/mathlive#1123

@joaortizro
Copy link
Author

@arnog it seems it's a problem with the react-scripts versions, i've tried 3.3.0,3.4.0 and 3.4.1 and still no success, but there was a change , now the error is on the ''??" operator, will dig futher and report any updates

@arnog
Copy link

arnog commented Aug 22, 2021

@joaortizro yes, it's due to some tools in the react-cli toolchain still using webpack-4, which does not support the ?? operator. The fix is in the mathlive depot, which is to target es2019 instead of the current version of Javascript. But maybe you can find a way to configure react-cli to use webpack-5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants