Angular 2 Cannot read property 'config' of null

前端 未结 10 833
执念已碎
执念已碎 2020-12-29 20:30

I have a issue with Angular 2. When i want to start server it get this:

$ ng serve
Cannot read property \'config\' of null
TypeError: Cannot read property \'         


        
10条回答
  •  梦毁少年i
    2020-12-29 21:08

    you missing .angular-cli.json,

    you can generate it by(go to a new folder)

     ng new project-name
    

    now copy .angular-cli.json file to your project root.

     ng serve 
    

    the error should be gone.

提交回复
热议问题