I am trying to consume an MFE using webpack 5, module federation with angular 13. However when I run the application I am getting below error.
Uncaught SyntaxError: Unexpected token ':'
Error occurring with the below code in webpack.config
new ModuleFederationPlugin({ name: "shell", filename: "remoteEntry.js", remotes: { MfeAccount: "account-mfexyz.com/remoteEntry.js" }, })
To me everything looks good, but still application not able to access remote MFE, and throwing error. Uncaught SyntaxError: Unexpected token ':'
Please assist.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I am trying to consume an MFE using webpack 5, module federation with angular 13. However when I run the application I am getting below error.
Uncaught SyntaxError: Unexpected token ':'
Error occurring with the below code in webpack.config
new ModuleFederationPlugin({
name: "shell",
filename: "remoteEntry.js",
remotes: {
MfeAccount: "account-mfexyz.com/remoteEntry.js"
},
})
To me everything looks good, but still application not able to access remote MFE, and throwing error. Uncaught SyntaxError: Unexpected token ':'
Please assist.