Nativescript procudes bootstrap:StaticInjectorError(AppModule)[EffectSources - >的ErrorHandler]:

时间:2018-06-12 06:34:03

标签: angular nativescript rxjs6

当我使用&#34运行应用程序时,运行android --emulator",我遇到以下错误

  

在设备上成功同步了应用程序org.nativescript.ema   模拟器-5554。 ActivityManager:启动proc   1005:org.nativescript.ema / u0a90用于活动   org.nativescript.ema / com.tns.NativeScriptActivity JS:Sam Activity   事件:activityCreated,活动:   com.tns.NativeScriptActivity@2689395,Bundle:null JS:推出   具有以下意图的Android应用程序:Intent {flg = 0x10000000   cmp = org.nativescript.ema / com.tns.NativeScriptActivity}。 JS:   bootstrap:ERROR BOOTSTRAPPING ANGULAR JS:bootstrap:   StaticInjectorError(AppModule)[EffectSources - > ErrorHandler]:JS:
  StaticInjectorError(Platform:core)[EffectSources - >的ErrorHandler]:   JS:NullInjectorError:没有ErrorHandler的提供者! JS:JS:   错误:NullInjectorError:没有ErrorHandler的提供程序! JS:at   NullInjector.get   (文件:///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1035:19)   [angular] JS:在resolveToken   (文件:///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1279:24)   [angular] JS:在tryResolveToken   (文件:///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1224:16)   [angular] JS:在StaticInjector.get中   (文件:///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1119:20)   [angular] JS:在resolveToken   (文件:///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1279:24)   [angular] JS:在tryResolveToken   (file:/// data / data / org.nativescript.ema / files / app / tns_mod ... JS:Sam   活动事件:activityStarted,活动:   com.tns.NativeScriptActivity@2689395 JS:恢复活动:   com.tns.NativeScriptActivity@2689395 JS:Sam活动事件:   activityResumed,活动:com.tns.NativeScriptActivity@2689395

这是我的package.json文件

{
  "name": "ema",
  "description": "Employer Maid Agency",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.ema",
    "tns-android": {
      "version": "4.1.2"
    }
  },
  "dependencies": {
    "@angular/animations": "^6.0.4",
    "@angular/common": "^6.0.4",
    "@angular/compiler": "^6.0.4",
    "@angular/core": "^6.0.4",
    "@angular/http": "^6.0.4",
    "@angular/platform-browser": "^6.0.4",
    "@angular/platform-browser-dynamic": "^6.0.4",
    "@angular/router": "^6.0.4",
    "@ngrx/effects": "^6.0.1",
    "@ngrx/store": "^6.0.1",
    "nativescript-angular": "^6.0.0",
    "nativescript-background-http": "^3.2.7",
    "nativescript-camera": "^4.0.2",
    "nativescript-fancyalert": "^1.2.0",
    "nativescript-feedback": "^1.2.0",
    "nativescript-loading-indicator": "^2.4.0",
    "nativescript-ngx-fonticon": "^4.2.0",
    "nativescript-snackbar": "^3.1.0",
    "nativescript-theme-core": "^1.0.4",
    "ramda": "^0.25.0",
    "reflect-metadata": "~0.1.10",
    "rxjs": "^6.2.0",
    "rxjs-compat": "^6.2.0",
    "tns-core-modules": "^4.1.0",
    "zone.js": "~0.8.18"
  },
  "devDependencies": {
    "@angular-devkit/core": "^0.6.8",
    "@angular/compiler-cli": "^6.0.4",
    "@ngtools/webpack": "^6.0.8",
    "babel-traverse": "^6.26.0",
    "babel-types": "^6.26.0",
    "babylon": "^6.18.0",
    "clean-webpack-plugin": "~0.1.19",
    "copy-webpack-plugin": "^4.5.1",
    "css-loader": "^0.28.11",
    "extract-text-webpack-plugin": "^3.0.2",
    "lazy": "^1.0.11",
    "nativescript-dev-typescript": "^0.7.1",
    "nativescript-dev-webpack": "^0.12.0",
    "nativescript-worker-loader": "^0.9.0",
    "raw-loader": "^0.5.1",
    "resolve-url-loader": "^2.3.0",
    "sass-loader": "^7.0.3",
    "typescript": "~2.7.2",
    "uglifyjs-webpack-plugin": "^1.2.5",
    "webpack": "^4.12.0",
    "webpack-bundle-analyzer": "^2.13.1",
    "webpack-cli": "~2.1.3",
    "webpack-sources": "^1.1.0"
  }
}

我尝试在线搜索解决方案但似乎以前从未报告过。我整个上午都在挣扎,但我不是要解决它。如果您确实需要源代码,请告诉我。

如果你可以指导我,我很感激&#34;其中&#34;我应该调查一下

提前感谢。

0 个答案:

没有答案