Closed rafalmaciejewski closed 2 years ago
I fixed it by setting a rule to load single-spa-react with ignorebrowserslistconfig option in babel-loader config. So it occurs when loading node_modules with babel-loader for transpilation. I remember it was the default config in create-react-app so it may be worth to fix it here as well.
Thanks for reporting this, I've created #137 to fix this.
This error comes up when building webpack apps that include single-spa-react. It's thrown from babel-loader. It was introduced in 4.5.0 - 4.4.0 works fine. I think that to fix it browserslist-config-single-spa should be moved from devDependencies to dependencies.