I'm using Webpack module federation in angular for developing micro frontend architecture.
Usually lot of dependencies or version mismatch is going to happen.
Ref: Error Screen
Just do:
npm install
Sometimes if you added a new node packages then there is chances of getting these type of errors. So that, to update the packages which are most likely to be dependent on the new installed packages run - npm install.
It worked for me.
Again i faced same problem then i used the below command
npm install source-map-support
Also please check the port number which you are using for the project. Try to change the port numbers to a different port numbers which are unused and safer.
Eg: If you are using the port http://localhost:2000/
then change it to different one in your angular.json
file
"options": {
"port": 5000,
"publicHost": "http://localhost:5000",
"extraWebpackConfig": "projects/core/webpack.config.js"
}
and also if you customized the commands for each micro frontend apps then change the port numbers in package.json
file also
"ng": "ng",
"start": "npm run start:core",
"start:core": "ng serve core -o --port 5000",
"start:dashboard": "ng serve dashboard -o --port 3000"
}