Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module '@angular-builders/custom-webpack/package.json'

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: Cannot find module @angular-builders/custom-webpack/.. Can anyone point out why this may be occuring and what's the remedy for this ? This is the relevant log file enter image description here

like image 532
Syed Abrar Jaleel Avatar asked Jan 24 '23 09:01

Syed Abrar Jaleel


1 Answers

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.

like image 99
james ace Avatar answered Jun 25 '23 07:06

james ace



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!