ERROR Error: Uncaught (in promise): Error: StaticInjectorError
2018-01-24 15:10
841 查看
问题:
ERROR Error: Uncaught (in promise): Error: StaticInjectorError[CallNumber]:
StaticInjectorError[CallNumber]:
NullInjectorError: No provider for CallNumber!
Error: StaticInjectorError[CallNumber]:
StaticInjectorError[CallNumber]:
NullInjectorError: No provider for CallNumber!
at _NullInjector.get (vendor.js:1276)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveNgModuleDep (vendor.js:10937)
at NgModuleRef_.get (vendor.js:12158)
at resolveDep (vendor.js:12654)
at _NullInjector.get (vendor.js:1276)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveNgModuleDep (vendor.js:10937)
at NgModuleRef_.get (vendor.js:12158)
at resolveDep (vendor.js:12654)
at c (polyfills.js:3)
at Object.reject (polyfills.js:3)
at NavControllerBase._fireError (vendor.js:48455)
at NavControllerBase._failed (vendor.js:48448)
at vendor.js:48495
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:4979)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
解决方法:
1.在app.module.ts文件顶端添加【import {CallNumber} from "@ionic-native/call-number";】
2.prooviders添加【CallNumber,】
ERROR Error: Uncaught (in promise): Error: StaticInjectorError[CallNumber]:
StaticInjectorError[CallNumber]:
NullInjectorError: No provider for CallNumber!
Error: StaticInjectorError[CallNumber]:
StaticInjectorError[CallNumber]:
NullInjectorError: No provider for CallNumber!
at _NullInjector.get (vendor.js:1276)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveNgModuleDep (vendor.js:10937)
at NgModuleRef_.get (vendor.js:12158)
at resolveDep (vendor.js:12654)
at _NullInjector.get (vendor.js:1276)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveToken (vendor.js:1564)
at tryResolveToken (vendor.js:1506)
at StaticInjector.get (vendor.js:1377)
at resolveNgModuleDep (vendor.js:10937)
at NgModuleRef_.get (vendor.js:12158)
at resolveDep (vendor.js:12654)
at c (polyfills.js:3)
at Object.reject (polyfills.js:3)
at NavControllerBase._fireError (vendor.js:48455)
at NavControllerBase._failed (vendor.js:48448)
at vendor.js:48495
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:4979)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
解决方法:
1.在app.module.ts文件顶端添加【import {CallNumber} from "@ionic-native/call-number";】
2.prooviders添加【CallNumber,】
import { CallNumber } from "@ionic-native/call-number"; ... @NgModule({ ... providers: [ ... CallNumber, ... ] ... }) export class AppModule { }
相关文章推荐
- ionic Uncaught (in promise): Error: StaticInjectorError[NavController]
- Ionic3报错Error: Uncaught (in promise): Error: StaticInjectorError
- Uncaught (in promise) TypeError: Super expression must either be null or a function
- Uncaught (in promise) TypeError:的错误
- angular4.0 ERROR Error: Uncaught (in promise): Error: No provider for AuthGuard! Error: No provider
- ionic3+angular4中给DOM添加监听事件后报错:Uncaught (in promise): TypeError: Cannot read property 'addEventListen
- Uncaught (in promise) TypeError: __webpack_require__.i(...) is not a function
- 【Angular2】Uncaught (in promise): TypeError: Cannot read property 'id'
- vue项目build报错的解决办法(ERROR in static/js/vendor.xxxxx.js from UglifyJs)
- UglifyJs无法压缩vendor.js: ERROR in static/js/vendor.xxx.js from UglifyJs
- Uncaught (in promise) SyntaxError: Unexpected token o in JSON at position 1
- java.lang.NoSuchFieldError: No static field xxx of type I in class Lcom/XX/R$id; or its superclasses
- Uncaught TypeError: Cannot use 'in' operator to sea
- Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in
- StaticInjectorError[Http]:
- Uncaught error in rebar_core: {'EXIT',
- jquery each报 Uncaught TypeError: Cannot use 'in' operator to search for错误
- Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "E:\xampp\htdocs\lanyun-4.4.1\te
- Uncaught SyntaxError: Unexpected token o in JSON at position 1
- ...Uncaught TypeError: Cannot use 'in' operator to search for“length”in { json数据 }