I'm following the document on single-spa for angular. My angular version is 11+. I followed the steps from
https://single-spa.js.org/docs/ecosystem-angular/#angular-cli through https://single-spa.js.org/docs/ecosystem-angular/#finish-installation successfully.
But as subsequent step when I complete https://single-spa.js.org/docs/ecosystem-angular/#configure-routes
and run the script at https://single-spa.js.org/docs/ecosystem-angular/#serving at npm run serve:single-spa (npm run serve:single-spa:my-app) actually,
I get the following error:
Can anyone point out why this may be occuring and what's the remedy for this ?
This is the relevant log file
You probably just forgot to run npm install
before running your application. This was the problem in my case.
Another solution you can try is to delete package-lock.json
then npm install again if you already have the node modules installed.
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