When I try to build my project running the following command:
ng build --environment=prod --aot=false --output-pa
Not sure whether below approach will solve your problem or not, please try once.
I have also faced the same issue while executing below command.
D:\My_Project>ng serve
Then I have followed below steps and it worked for me.
D:\My_Project>npm link
D:\My_Project>ng serve
If this is not working kindly let me know I will try to reproduce the error which you are getting and try to give you solution as soon as possible.
I solved my issue with this same exact error with npm link
followed by ng serve
. I was told by another forum that this may be a result of an empty node_modules
folder. Please let me know if this works for you.
just try using this code to disable depending @angular/core
and/or rxjs
type this:
ng config -g cli
faced same issue but solve such as by typing 1. npm link and then 2. ng serve if you still face issue then contact me...