腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
应用程序
测试
返回
"
NullInjectorError
:
没有
位置
提供
程序
!“
unit-testing
、
karma-jasmine
、
angular7
使用Karma在Angular 7中
测试
应用程序
时,我无法删除subj中的错误。 我已经搜索了许多地方(主要是这里),但要么解决方案不起作用,要么与我的情况无关。HeaderComponent -> Location]:
NullInjectorError
浏览 12
提问于2019-05-27
得票数 14
回答已采纳
3
回答
如何将ngx引导模块注入到子模块中- Angular 4
angular
、
ng-bootstrap
、
angular5
我的
应用程序
文件夹结构如下: app.module.ts>>auth auth.module.ts StaticInjectorError[ComponentLoaderFactory]:
NullInjectorError
: StaticInjectorError[ComponentLoaderFa
浏览 2
提问于2017-12-19
得票数 6
2
回答
角
测试
误差-
NullInjectorError
: TrimInputDirective
没有
提供
程序
javascript
、
angular
、
unit-testing
、
angular-directive
、
angular-unit-test
我创建了一个角度指令,它使用CSS选择器自动修剪我的
应用程序
中的输入,它看起来是这样.StaticInjectorError(平台:核心) TrimInputDirective :
NullInjectorError
:
没有
TrimInputDirective的
提供
者!我不认为这是
浏览 0
提问于2018-06-01
得票数 10
回答已采纳
1
回答
测试
时的
NullInjectorError
javascript
、
angular
、
typescript
、
testing
、
karma-jasmine
在角度12中运行ng
测试
时,我遇到了以下问题:
NullInjectorError
:
没有
BaseURL的
提供
者!/shared/bas
浏览 1
提问于2021-09-21
得票数 0
回答已采纳
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
回答已采纳
1
回答
NullInjectorError
:
没有
ActivatedRouteSnapshot
提供
程序
ngxs
constructor(private activatedSnapshot: ActivatedSnapshot, private store: Store) {} this.store.dispatch(new Navigate( null, )); } 有什么东西是我应该进口的吗?
浏览 18
提问于2019-01-22
得票数 1
2
回答
NullInjectorError
:
没有
ChangeDetectorRef
提供
程序
angular
PrintComponent -> ChangeDetectorRef]: StaticInjectorError(Platform: core)[PrintComponent -> ChangeDetectorRef]:
NullInjectorError
浏览 1
提问于2018-02-22
得票数 5
2
回答
NullInjectorError
:
没有
类
提供
程序
angular
、
angular2-services
NullInjectorError
:
没有
类
提供
程序
// Component import { Formation } from '.
浏览 0
提问于2018-02-26
得票数 9
回答已采纳
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
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
回答已采纳
1
回答
Angular单元
测试
很烦人:在构建/编译时找不到问题
angular
、
typescript
、
karma-jasmine
、
angular10
每次我为Angular编写
测试
时,我的
测试
都会在运行执行时失败,而不是在构建时失败。找不到此问题的
提供
程序
,找不到
提供
程序
等NULL,如何在构建编译时发现所有这些问题?而不是在运行时填充缺少的
提供
程序
?我所做的就是不断地在谷歌之间来回切换。这就是为什么React现在拥有最高的市场份额。我用谷歌解决了这个问题,现在又多了10个,有
没有
一个快速有效的解决方案来解决所有这些问题?
NullInjectorError
: R3I
浏览 5
提问于2020-12-07
得票数 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
回答已采纳
1
回答
Angular 6
测试
:如何在
没有
嵌套依赖的情况下
提供
服务?
angular
、
testing
、
jasmine
、
karma-runner
、
injectable
我正在为ComponentA编写一个
测试
,将ServiceA添加到
测试
床
提供
者中。我运行
测试
,得到以下错误:
NullInjectorError
: No provider我将ServiceB添加到
提供
程序
。我再次运行
测试
,现在得到: StaticInjectorError(DynamicTestModule)[ServiceB
浏览 9
提问于2018-08-10
得票数 2
回答已采纳
1
回答
测试
UpgradeComponent抛出
NullInjectorError
:
没有
$injector的
提供
程序
!错误
angular
、
angular-test
、
angular-upgrade
constructor(elementRef: ElementRef, injector: Injector) { } } 当我运行
应用程序
时但是,当我尝试
测试
使用该指令的Angular 8组件时,我得到了以下错误:
NullInjectorError
: StaticInjectorError(DynamicTestModule)[$injector然而,我不确定如何将其
提供
给我的spec.ts。Angular很好地记录
浏览 19
提问于2020-03-16
得票数 3
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
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Java开发中File类常见方法总结
为纯 OpenWhisk 操作创建单元测试
IOS视频通话悬浮窗操作技巧!iOS的画中画功能实现方法与注意事项
测试最常见的21个故障模型(二)
对某大型网站的逻辑漏洞发现
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券