Donex Fience
Donex Fience

Reputation: 1

Single spa Error Cannot use import statement outside a module while running root config

https://github.com/donexfience/MF_Testing_debug_purpose

when i running my root config after installing by create-single-spa --moduleType root-config commmand.After this i started my root config and i go to browser i see the error showing donexfdz-root-config-root-config.js:1 Uncaught SyntaxError: Cannot use import statement outside a module (at donexfdz-root-config-root-config.js:1:1) im working on this for a week . I tried to change the webpack to emit commonjs that also didnt work by changing the

Upvotes: -2

Views: 345

Answers (1)

Leiner Barrios
Leiner Barrios

Reputation: 1

I was able to fix this bug by downgrading to version 4.1.6 of create-single-spa. I recommend that you do the same, surely in versions later than 5.X this problem will be solved.

Upvotes: 0

Related Questions