Angular `“上发生了未捕获的异常”;“主要”;线程`在新应用程序上发生错误

Angular `“上发生了未捕获的异常”;“主要”;线程`在新应用程序上发生错误,angular,nativescript,Angular,Nativescript,我需要帮助 当我使用命令ng new-c=@nativescript/schematics ns6--shared--style=scss创建一个新的代码共享应用程序时,在tns run andriod上出现如下错误 有人能帮我吗 它在iOS上也不起作用 但是它在没有代码共享的情况下工作 需要注意的一点是:我在一年前安装了Nativescript环境。我刚刚更新了Nativescript并尝试运行 我甚至安装了@nativescript/schematics@0.3.0-rc.1,但它仍然不起

我需要帮助

当我使用命令
ng new-c=@nativescript/schematics ns6--shared--style=scss
创建一个新的代码共享应用程序时,在
tns run andriod
上出现如下错误

有人能帮我吗

它在iOS上也不起作用

但是它在没有代码共享的情况下工作

需要注意的一点是:我在一年前安装了Nativescript环境。我刚刚更新了Nativescript并尝试运行

  • 我甚至安装了@nativescript/schematics@0.3.0-rc.1,但它仍然不起作用
这个
package.json

{
  "name": "ns6",
  "nativescript": {
    "id": "org.nativescript.ns6",
    "tns-android": {
      "version": "6.1.2"
    }
  },
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "android": "tns run android",
    "ios": "tns run ios",
    "mobile": "tns run",
    "preview": "tns preview"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~8.0.1",
    "@angular/common": "~8.0.1",
    "@angular/compiler": "~8.0.1",
    "@angular/core": "~8.0.1",
    "@angular/forms": "~8.0.1",
    "@angular/http": "~8.0.0-beta.10",
    "@angular/platform-browser": "~8.0.1",
    "@angular/platform-browser-dynamic": "~8.0.1",
    "@angular/router": "~8.0.1",
    "core-js": "^2.5.4",
    "nativescript-angular": "~8.0.1",
    "nativescript-theme-core": "~1.0.4",
    "reflect-metadata": "~0.1.12",
    "rxjs": "~6.5.0",
    "tns-core-modules": "~6.0.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular/cli": "~8.0.3",
    "@angular/compiler-cli": "~8.0.1",
    "@angular-devkit/build-angular": "~0.800.0",
    "@nativescript/schematics": "~0.7.0",
    "@nativescript/tslint-rules": "~0.0.2",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "^5.0.0",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "nativescript-dev-webpack": "~1.0.0",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.15.0",
    "typescript": "~3.4.3",
    "node-sass": "^4.7.1"
  }
}
NativeScript版本

$ tns --version
6.1.2
角度版本

$ ng --version
Your global Angular CLI version (8.3.5) is greater than your local
version (8.0.6). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 8.0.6
Node: 10.16.0
OS: darwin x64
Angular: 8.0.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.6
@angular-devkit/build-angular     0.800.6
@angular-devkit/build-optimizer   0.800.6
@angular-devkit/build-webpack     0.800.6
@angular-devkit/core              8.0.6
@angular-devkit/schematics        8.0.6
@angular/cli                      8.0.6
@angular/http                     8.0.0-beta.10
@ngtools/webpack                  8.0.6
@schematics/angular               8.0.6
@schematics/update                0.800.6
rxjs                              6.5.3
typescript                        3.4.5
webpack                           4.30.0
Nativescript示意图版本

~/tmp/ns6 $ npm list -g --depth=0
/usr/local/lib
├── @nativescript/schematics@0.7.1

在删除node_modules/@types/jasminewd2/index.d.ts(8,23)中的
错误后,它正在工作:错误TS2688:找不到“jasmine/v2”的类型定义文件。

我只是简单地删除了
//
,它在Android和iOS上都能工作

~/tmp/ns6 $ npm list -g --depth=0
/usr/local/lib
├── @nativescript/schematics@0.7.1