Receiving SyntaxError from auth0-react package

Greetings, I am working jsbundling-rails and webpack 5.88.2 – I also use babel-loader package for handling transpiling. I’m receiving an issue where auth0 is breaking in the view. The full log output is below. How can I get esm to work with webpack 5?

Uncaught SyntaxError: Invalid or unexpected token (at auth0-react.esm.js:120:65372)
at ./node_modules/@auth0/auth0-react/dist/dist/auth0-react.esm.js

Forgot to add the version of auth0
@auth0/auth0-react ^1.6.0

babel-loader required some extra configs to pickup esm modules

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.