腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
NullInjectorError
:
没有
ActivatedRouteSnapshot
提供
程序
ngxs
constructor(private activatedSnapshot: ActivatedSnapshot, private store: Store) {} this.store.dispatch(new Navigate( null, )); } 有什么东西是我应该进口的吗?
浏览 18
提问于2019-01-22
得票数 1
1
回答
没有
ActivatedRouteSnapshot
的
提供
者
angular
、
unit-testing
、
jasmine
TestBed.createComponent(OKComponent); TestBed.inject(
ActivatedRouteSnapshot
; it('should create', () => { }); 我所犯的错误我总是
NullInjectorError
: ->
ActivatedR
浏览 0
提问于2021-08-25
得票数 0
1
回答
不能向“`HttpInterceptor`”中注入“`Route`”或“`
ActivatedRouteSnapshot
`”
angular
、
angular-router
、
angular-dependency-injection
:
ActivatedRouteSnapshot
, StaticInjectorError(AppModule)InjectionToken HTTP_INTERCEPTORS ->
ActivatedRouteSnapshot
: StaticInjectorError(平台:核心)InjectionToken HTTP_INTERCEPTORS -
浏览 0
提问于2018-10-02
得票数 1
回答已采纳
1
回答
角(5)-延迟加载和canActivate保护- StaticInjectorError
angular
、
lazy-loading
、
router
在我们的应用
程序
路由模块中 ...: [RouterModule.forRoot(routes)],})因此,
没有
一旦我按下演示路线,我就会得到这个错误: StaticInjectorErrorDevOnlyGuard:
NullInjectorError
:<em
浏览 2
提问于2017-12-07
得票数 10
回答已采纳
1
回答
角11:
NullInjectorError
:
没有
AssetResolver_Factory的
提供
者!即使使用@Injectable并在App.module中
提供
angular
我只是试图添加一个解析器到我的角度应用
程序
,但我得到了
NullInjectorError
: No provider for AssetResolver_Factory!错误。对于
提供
者数组,我尝试了许多不同的选项,但都
没有
效果。解析器是在根中
提供
的,每次我看过的问题都是用@Injectable()在根中
提供
给它,或者将它添加到app.module中的providers数组中。不变 import { Injectable } from '@angular/core
浏览 4
提问于2021-01-24
得票数 3
2
回答
NullInjectorError
:
没有
RouterStateSerializer
提供
程序
angular
、
ngrx-router-store
StaticInjectorError(Platform: core)[StoreRouterConnectingModule -> RouterStateSerializer]: at _createProviderInstance (http://localhost:4200/vendor.js:58199:26) 有
没有
人可以看一看
浏览 65
提问于2019-06-26
得票数 3
回答已采纳
4
回答
NullInjectorError
:
没有
HighContrastModeDetector
提供
程序
angular
、
angular8
这在MAC上运行得很好,但在Windows上运行时,它会在浏览器上停止并出现错误 StaticInjectorError(Platform: core)[MatCommonModule -> HighContrastModeDetector]:
NullInjectorError
浏览 2
提问于2019-11-25
得票数 8
1
回答
NullInjectorError
:
没有
BsDropdownConfig
提供
程序
angular
、
dropdown
、
ngx-bootstrap
Something else here</a></li> </div> 我在控制台中得到了这个错误: ERROR Error: Uncaught (in promise):
NullInjectorError
BsDropdownConfig]:
NullInjecto
浏览 22
提问于2021-10-22
得票数 0
回答已采纳
2
回答
NullInjectorError
:
没有
FormBuilder
提供
程序
angular
、
primeng
、
angular-reactive-forms
、
angular-formbuilder
我需要使用FormBuilder,但是
程序
给了我一些错误。在我的测试中,我这样做:问题是当我打开页面时,我得到了两个异常
NullInjectorError
: No provider for FormBuilder
浏览 177
提问于2020-05-22
得票数 0
1
回答
NullInjectorError
:
没有
ChildrenOutletContexts
提供
程序
angular
、
typescript
、
routing
、
stackblitz
/app-routing.module';ERRORStaticInjectorError(Platform: core)[RouterOutlet -> ChildrenOutletContexts]:
NullInjectorError
我用谷歌搜索了这个错误,找到了:和,但我
没有
发现它们有
浏览 24
提问于2019-07-06
得票数 1
回答已采纳
2
回答
NullInjectorError
:
没有
ReducerManager
提供
程序
angular
、
ngrx-store
、
ngrx-store-4.0
.],entryComponents: [...]我关注了教程\n StaticInjectorError(Platform: core)[StoreFeatureModule -> ReducerManager]: \n
NullInjectorError
但是如果我在
提供
程序
中
提供
了ReducerManager,我
浏览 3
提问于2018-03-06
得票数 23
回答已采纳
2
回答
NullInjectorError
:
没有
类
提供
程序
angular
、
angular2-services
NullInjectorError
:
没有
类
提供
程序
// Component import { Formation } from '.
浏览 0
提问于2018-02-26
得票数 9
回答已采纳
2
回答
NullInjectorError
:
没有
ChangeDetectorRef
提供
程序
angular
PrintComponent -> ChangeDetectorRef]: StaticInjectorError(Platform: core)[PrintComponent -> ChangeDetectorRef]:
NullInjectorError
浏览 1
提问于2018-02-22
得票数 5
1
回答
NullInjectorError
:
没有
NgbModalRef
提供
程序
angular
、
typescript
、
nebular
我尝试使用NgbModalRef关闭一个Modal (用NgbModal打开),但在一些组件中我看到了错误: 错误错误:未捕获(在promise中):
NullInjectorError
: R3InjectorError(MyModule)NgbModalRef -> NgbModalRef:
NullInjectorError
:
没有
NgbModalRef的
提供
程序
!注2:我在某个地方看到人们说要用appModule
提供
商编写NgbModalRef,我认为这不是正确的方式,因为它不是
浏览 7
提问于2021-05-12
得票数 1
2
回答
NullInjectorError
:
没有
ConnectionBackend
提供
程序
angular
、
typescript
core.js:7187 ERROR Error: Uncaught (in promise):
NullInjectorError
: StaticInjectorError(AppModule)[Http-> ConnectionBackend]:
NullInjectorError
NullInjectorError
: StaticInjectorError(AppModule)[Ht
浏览 7
提问于2019-11-08
得票数 0
回答已采纳
6
回答
角AuthGuard不工作
angular
、
auth-guard
constructor(private router: Router, private authService: AuthenticationService) {} { path: 'home', component: HomeComponent,canActivate : [AuthGuard] }我还将其添加到
提供
程序
数组中/app.component.c
浏览 0
提问于2018-05-19
得票数 7
3
回答
角8解析器不工作:
没有
Resolver的
提供
者
angular
、
typescript
这是错误消息:resolve(state: RouterStateSnapshot ): Observable<an
浏览 4
提问于2020-01-31
得票数 7
回答已采纳
2
回答
Angular
NullInjectorError
: MatDialog
没有
提供
程序
angular
、
angular-material
因此,当我尝试加载我的angular应用
程序
时,我得到了这个错误: ERROR Error: Uncaught (in promise):
NullInjectorError
: StaticInjectorError大多数错误都是StaticInjectorErrors,我的错误是
NullInjectorError
,但我不确定这两者之间的区别是什么。
浏览 12
提问于2020-01-22
得票数 12
回答已采纳
4
回答
NullInjectorError
:
没有
函数(){}的
提供
程序
!
angular
、
typescript
、
dependency-injection
这是我在
没有
CLI和调试的角7项目中设置一个自定义AOT的几个小时后的最后一招,我得到了
NullInjectorError
: No provider for function(){}!console.log(error); }我的应用
程序
上
浏览 1
提问于2019-02-26
得票数 2
回答已采纳
4
回答
角6:无光(承诺):错误: StaticInjectorError(AppModule)[RoleGuardService]
angular
、
angular-routing
、
angular-guards
请注意,我有一个共享模块,并且我
没有
在导出中声明角色保护服务。 import { RoleGuardService } from '../..):错误: StaticInjectorError(AppModule)RoleGuardService: StaticInjectorError(平台:核心) RoleGuardService :
NullInjectorError
:
没有
RoleGuardService的
提供
者!错误: StaticInjectorError(AppModule)RoleGuar
浏览 0
提问于2019-03-15
得票数 3
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
上门家政小程序项目服务客群?
开发者表示,Mac App Store 上的一些顶级免费应用只是应用内购买的诱饵
微信小程序被投诉怎么办?小妙招教给你
苹果谷歌应用商店包含超过150万个“废弃App”
Android和iOS 应用商店中到处都是假的 ChatGPT 应用
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券