Skip to content

Failed to Compile due to babel-loaders #36

Open

Description

@joaortizro

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

Screenshot_20210806_154750

Activity

  1. joaortizro commented on Aug 20, 2021

    @joaortizro
    Author

    anyone having the same problems?

  2. arnog commented on Aug 21, 2021

    @arnog

    This is a duplicate of arnog/mathlive#1123

  3. joaortizro commented on Aug 21, 2021

    @joaortizro
    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

  4. arnog commented on Aug 22, 2021

    @arnog

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions