Попытка построить PWA с помощью nativescripts - PullRequest
0 голосов
/ 27 октября 2019

У меня есть новое приложение nativescript, которое я хочу запустить в Интернете (помимо мобильного), но когда я запускаю ng serve, я получаю

ng serve
An unhandled exception occurred: No projects support the serve target.
See /private/var/folders/wz/v4mcrr4n35v9q72wbvlzwqnh0000gn/T/ng-UsAqii/angular-errors.log for further details.

И в этом файле журнала:

[error] Error: No projects support the 'serve' target.
    at ServeCommand.initialize (/.../node_modules/@angular/cli/models/architect-command.js:53:19)
    at async ServeCommand.validateAndRun (/.../node_modules/@angular/cli/models/command.js:124:9)
    at async Object.runCommand (/.../node_modules/@angular/cli/models/command-runner.js:186:24)
    at async default_1 (/.../node_modules/@angular/cli/lib/cli/index.js:54:31)

Это мой пакет. Json

"dependencies": {
    "@angular/animations": "~8.2.0",
    "@angular/common": "~8.2.0",
    "@angular/compiler": "~8.2.0",
    "@angular/core": "~8.2.0",
    "@angular/forms": "~8.2.0",
    "@angular/platform-browser": "~8.2.0",
    "@angular/platform-browser-dynamic": "~8.2.0",
    "@angular/router": "~8.2.0",
    "frame-ui": "^1.0.1",
    "nativescript-angular": "~8.2.0",
    "nativescript-image-filters": "^2.2.2",
    "nativescript-theme-core": "~1.0.6",
    "nativescript-ui-sidedrawer": "~7.0.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.4.0",
    "tns-core-modules": "~6.0.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular/cli": "^8.3.14",
    "@angular/compiler-cli": "~8.2.0",
    "@nativescript/schematics": "^0.7.2",
    "@ngtools/webpack": "~8.2.0",
    "@schematics/angular": "^8.3.14",
    "@types/jest": "^24.0.19",
    "codelyzer": "~4.5.0",
    "nativescript-dev-webpack": "~1.1.0",
    "node-sass": "^4.7.1",
    "tslint": "~5.11.0",
    "typescript": "~3.5.3"
  },
...