Error: Local workspace file ('angular.json') could not be found

前端 未结 23 1060
-上瘾入骨i
-上瘾入骨i 2020-11-28 01:10

I have travis-ci integrated with my GitHub account (https://github.com/pradeep0601/Angular5-Router-App).

When I updated @angular/cli versio

23条回答
  •  旧巷少年郎
    2020-11-28 01:58

    I was trying to set my Ionic 4 app to run as a pwa. When I run the command:

    ng add @angular/pwa
    

    ...got the error message. After some try and error I discovered that when my project was created the start command was wrong. I was using an Ionic 3 version:

    ionic start myApp tabs --type=ionic-angular
    

    And the correct is:

    ionic start myApp tabs --type=angular
    

    with no 'ionic-' in type. This solved the error.

提交回复
热议问题