I am trying to add supabase/auth-ui
to my react project
https://github.com/supabase/auth-ui
My runtime error is:
./node_modules/@supabase/auth-ui-react/dist/index.es.js 1095:48
Module parse failed: Unexpected token (1095:48)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
I think this means that I cannot handle ES modules. Do I need a webpack plugin?
These tsconfig.json
values fixed it:
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
">0.2%",
"not dead",
"not op_mini all"
]
},