“You seem to not be depending on ”@angular/core“.”

后端 未结 10 1548
执念已碎
执念已碎 2020-12-24 11:05

When I try to build my project running the following command:

ng build --environment=prod --aot=false  --output-pa         


        
相关标签:
10条回答
  • 2020-12-24 11:24

    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.

    0 讨论(0)
  • 2020-12-24 11:26

    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.

    0 讨论(0)
  • 2020-12-24 11:28

    just try using this code to disable depending @angular/core and/or rxjs

    type this:

    ng config -g cli
    
    0 讨论(0)
  • 2020-12-24 11:28

    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...

    0 讨论(0)
提交回复
热议问题