腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Angular
9
:
NULLINJECTORERROR
:
NGXSMARTMODALSERVICE
没有
提供
程序
、
actionService.spec.ts import { TestBed } from '@
angular
/core/testing'; TestBed.configureTestingModule({ providers: [
NgxSmartModalService
1规范,1失败,用种子66295SPEC列表随机化|失败MU
浏览 29
提问于2021-08-06
得票数 3
5
回答
Angular
9
:
NullInjectorError
: CompilerFactory
没有
提供
程序
、
在浏览器prod/aot模式下运行应用
程序
时收到此消息。下面是我的main-aot.ts 未捕获
NullInjectorError
: StaticInjectorError(Platform: CompilerFactory )核心:
NullInjectorError
: CompilerFactory
没有
提供
程序
!import { platformBrowserDynamic } from '@
angular
/platform-brows
浏览 1
提问于2020-02-20
得票数 6
2
回答
Angular
NullInjectorError
: MatDialog
没有
提供
程序
、
因此,当我尝试加载我的
angular
应用
程序
时,我得到了这个错误: ERROR Error: Uncaught (in promise): import { M
浏览 12
提问于2020-01-22
得票数 12
回答已采纳
3
回答
NullInjectorError
:
没有
NotifierQueueService的
提供
程序
!Karma Angualr 6
、
、
、
我在我的应用
程序
中使用了
angular
-notifier,.It可以很好地从‘
angular
-notifier’导入{ NotifierModule };在app.module.ts中
提供
程序
: TestBed中的NotifierService
NullInjectorError
:
没有
NotifierService的
提供<
浏览 25
提问于2020-03-11
得票数 0
1
回答
Angular
7:
NullInjectorError
: MatSnackBarConfig
没有
提供
程序
、
在我们的项目中,我们使用
Angular
7和
Angular
Material。在Google Chrome下一切正常,但在Internet Explorer 11下,当应用
程序
使用--aot标志运行时,我们会收到以下错误: ERROR Error: StaticInjectorErrorMatSnackBarConfig]:
NullInjectorError
浏览 7
提问于2019-06-21
得票数 1
3
回答
离子5 Cordova插件EmailComposer
NullInjectorError
、
、
、
: R3InjectorError(ContentModule)EmailService -> EmailComposer -> EmailComposer:} core.js:6228错误: Uncaught (承诺):Error: NgModule 'SharedModule‘的无效
提供
程序</e
浏览 3
提问于2020-09-15
得票数 1
回答已采纳
5
回答
角-
没有
FormBuilder的
提供
者
、
我用的是角
9
。不
提供
FormBuilder 它在许多情况下都有报告,一般的解决方案似乎是将FormsModule添加到app.module.ts文件中。错误:未知(承诺):
NullInjectorError
: R3InjectorError(AppModule)FormBuilder -> FormBuilder -> FormBuilder:
NullInjectorError
NullInjectorError
: R3InjectorError(AppModule)F
浏览 4
提问于2020-07-02
得票数 8
回答已采纳
1
回答
在以角表示的服务中使用"ElementRef“时出错
、
错误错误:未知(承诺):错误: StaticInjectorError(AppModule)ElementRef:StaticInjectorError(平台:核心) ElementRef :
NullInjectorError
:
没有
ElementRef的
提
浏览 1
提问于2018-07-04
得票数 3
回答已采纳
1
回答
角2错误
NullInjectorError
:
没有
Http
提供
程序
、
、
我正在尝试读取一个json服务,并且我得到了一个错误
NullInjectorError
:
没有
Http的
提供
者!我已经在代码中添加了
提供
程序
,但是它不起作用,我不知道是什么导致了错误,但是我知道它发生在哪里,我需要一些能够帮助理解造成这种错误的原因的人。import { Injectable } from '@
angular
/core'; import { NgModule } from '@
angular
/core
浏览 0
提问于2019-06-04
得票数 1
3
回答
如何将ngx引导模块注入到子模块中-
Angular
4
、
、
我的应用
程序
文件夹结构如下: app.module.ts>>auth auth.module.tsauth.module.tsimport{ CommonModule } from '@
angula
浏览 2
提问于2017-12-19
得票数 6
1
回答
使用Angularfire时,如何使Firebase应用
程序
检查工作?
、
、
、
、
我正在尝试让Firebase应用
程序
检查工作,但我很难找到一种使用Angularfire的方法,因为从我所能找到的东西来看,上面似乎
没有
文档。} from '@
angular
/fire/compat'; import { AngularFireStorageModule } from '@
angular
/fire/compat/storage-> InjectionToken AngularFireAuth 2.应用
程序
浏览 16
提问于2022-04-18
得票数 5
回答已采纳
1
回答
AngularFire -新的
提供
者语法
、
、
@
angular
/fire包在ng add导入中添加的这些
提供
程序
的目的是什么: provideRemoteConfig(() => getRemoteConfig()),它们
提供
什么功能当我想使用AngularFirestoreModule的依
浏览 10
提问于2022-08-13
得票数 2
回答已采纳
2
回答
为什么将DatePipe添加到可注入的服务构造函数失败?
、
NullInjectorError
:
没有
为DatePipe!
提供
服务注意:DatePipe已在
提供
程序
列表中指定。import { DatePipe } from '@
angular
/common'; ...
浏览 1
提问于2021-09-02
得票数 0
1
回答
NullInjectorError
:
没有
编译器的
提供
程序
此错误的自回答问题: injector.ts:128未捕获错误: StaticInjectorErrorCompiler: StaticInjectorErrorCompiler:
NullInjectorError
:
没有
编译器的
提供
程序
!在_NullInjector.get (injector.ts:23)
angular
浏览 0
提问于2017-11-10
得票数 6
1
回答
NullInjectorError
:在
Angular
6中
没有
AnimationBuilder
提供
程序
、
、
大家好,我正在处理
Angular
6和材料设计方面的工作它在编译时
没有
给出错误,但在浏览器渲染时得到以下错误 我已经导入了所有必需的依赖项 StaticInjectorError(Platform: core)[
浏览 9
提问于2018-07-26
得票数 20
回答已采纳
1
回答
如何修复“错误: StaticInjectorError(AppModule)[NgbDropdown -> ChangeDetectorRef]”
、
我正在尝试创建一个使用errors的webapp应用
程序
,这个项目是
没有
错误地编译的。AppModule)NgbDropdown -> ChangeDetectorRef:
NullInjectorError
:
没有
ChangeDetectorRef的
提供
者!AppModule)NgbDropdown -> ChangeDetectorRef: StaticInjecto
浏览 0
提问于2019-04-18
得票数 0
1
回答
在
angular
2中进行参数路由时,构造函数注入会阻止页面加载
emp-list.component.tsimport {Router} from '@
angular
/router'Sriram"}, ] app.component.ts import { Component } from '@
ang
浏览 0
提问于2018-02-28
得票数 0
2
回答
NullInjectorError
:
没有
NgZone的
提供
程序
!(
Angular
6库)
、
、
、
最小工作测试用例 exports: [ExampleComponent]export class ExampleModule { }ng build --prod example让我们尝试在不同的应用
程序
中使用该库。我首先生成一个新的应用
程序
,它与包含该库的应用
程序
位于相同的目录中。// added providers: [], boo
浏览 38
提问于2018-07-31
得票数 6
1
回答
Angular
单元测试很烦人:在构建/编译时找不到问题
、
、
、
每次我为
Angular
编写测试时,我的测试都会在运行执行时失败,而不是在构建时失败。找不到此问题的
提供
程序
,找不到
提供
程序
等NULL,如何在构建编译时发现所有这些问题?而不是在运行时填充缺少的
提供
程序
?我所做的就是不断地在谷歌之间来回切换。这就是为什么React现在拥有最高的市场份额。我用谷歌解决了这个问题,现在又多了10个,有
没有
一个快速有效的解决方案来解决所有这些问题?
NullInjectorError
: R3InjectorEr
浏览 5
提问于2020-12-07
得票数 1
回答已采纳
3
回答
角度选择性导入/注入
在
Angular
8中是否可以在运行时选择性地导入/注入?我有一个旧的服务,我想在同一个ng-cli工作区的新项目中使用,但新项目使用内置的
Angular
路由,而旧的使用第三方路由。this.state = this.injector.get<any>(StateService); } 这意味着我不需要注入它,但是新的项目代码仍然失败,因为StateService
没有
提供
程序
ERROR Error: Uncaught (in promise):
NullInjecto
浏览 16
提问于2020-04-30
得票数 0
回答已采纳
点击加载更多
相关
资讯
程序员偷偷爱着的9个不良编程习惯快来看看你有没有?
Angular 9即将发布:改进Ivy编译和渲染管道
Angular5.1新版本以及更多可用功能
推荐几款Angular工具,轻松实现高性能目标
Angular 11 正式发布:加入 webpack 5,升级至 TS 4.0,不再支持 IE 9 和 10
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券