I created an angular nx monorepo and created two applications. When I start either of them I get the following error:

I already saw some stackoverflow posts were the answers suggested to just add "type": "module" to package.json. But since it is a monorepo only one package.json is used for all the apps.
microfrontend:

This has been asked already, and the answer is here
You just need to adjust your
module.exports = {
output: {
uniqueName: "MyProj",
publicPath: "auto",
scriptType: 'text/javascript'
}
to include scriptType: 'text/javascript'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With