腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(159)
视频
沙龙
1
回答
ng2-signalr包的Angular 6中的SignalR实现
错误
asp.net
、
signalr
、
angular6
错误
错误
:未捕获(在promise中):
错误
:
StaticInjectorError
(
AppModule
)SignalR ->
InjectionToken
SIGNALR_JCONNECTION_TOKEN:
StaticInjectorError
(Platform: core)SignalR ->
InjectionToken
SIGNALR_JCONNECTION_TOKEN:
NullInjectorError
:
浏览 16
提问于2018-12-13
得票数 0
1
回答
StaticInjectorError
(
AppModule
)[
NbOAuth2AuthStrategy
->
InjectionToken
窗口
];
NullInjectorError
错误
:
InjectionToken
窗口
没有
提供
程序
angular
、
nebular
HttpClientModule也是在
AppModule
的imports数组中配置的。在实现配置谷歌Oauth2身份验证机制的新语言(Angualar 8.2.9)中集成new /auth模块时出现上述
错误
。
AppModule
.ts import { BrowserModule } from "@angular/platform-browser";import {
浏览 19
提问于2019-10-09
得票数 1
1
回答
无法将
InjectionToken
注入服务构造函数
angular
、
typescript
、
swagger
、
swagger-codegen
我需要解决为什么我的
injectionToken
没有
被注入到类构造函数中。我有angular (7.1),由NSwag生成的代码。[Client ->
InjectionToken
API_BASE_URL]: <
浏览 0
提问于2019-01-05
得票数 1
3
回答
库中的Angular默认管道不工作
angular
、
angular7
、
angular-pipe
、
angular-library
这将是一种多存储库的方法,应用
程序
的每个部分都是一个库。所有这些部分都将拥有它们的组件、管道、服务…… 但是我的第一个测试
没有
起作用。日期管道
错误
: Error: Uncaught (in promise): Error:
StaticInjectorError
(
AppModule
)[DatePipe ->
InjectionToken
LocaleId]:
StaticInjectorError
(Platform: core)[DatePipe ->
浏览 8
提问于2020-04-21
得票数 2
回答已采纳
1
回答
StaticInjectorError
(
AppModule
)服务->
InjectionToken
角误差
angular
、
angular-ui-router
、
node-modules
如何解决以下
错误
StaticInjectorError
(Platform: core)[OzaAuthService ->
InjectionToken
oza.config.angular]:
NullInjecto
浏览 5
提问于2020-02-03
得票数 2
回答已采纳
1
回答
当尝试使用configService注入器引导时,
没有
为APP_INITIALIZER
提供
程序
angular
、
dependency-injection
、
angular-bootstrap
config.json') .then(data => { });} return () => {}; };
NullInjectorError
:
StaticInjectorError
(<e
浏览 3
提问于2021-03-17
得票数 0
1
回答
如何在构造函数中可选地注入MAT_DIALOG_DATA
angular
、
typescript
然而,在其他屏幕上,我希望编辑客户,但
没有
路由到客户页面。因此,我使用弹出通过使用mat对话框实现这一点。弹出是可以的,但是当我试图通过客户维护屏幕而不是弹出屏幕访问屏幕时,我点击了下面这个
StaticInjectorError
(
AppModule
)CustomerEditComponent ->
InjectionToken
MatDialogData:
StaticInjectorError
(平台:核心)CustomerEditComponent ->
InjectionToke
浏览 1
提问于2019-05-30
得票数 3
2
回答
Service InjectionError Angular服务
angular
、
typescript
我正在构建一个web应用
程序
,并创建了一个服务: providedIn: 'rootthis.startTime = startTime; this.endTime = endTime;}ERROR Error: Uncaught (in promise): Error:
浏览 10
提问于2018-08-03
得票数 0
回答已采纳
4
回答
重用现有的“材料”对话框中的角元件
angular
、
dialog
、
angular-material
private dialog: MatDialog, @Optional() @Inject(MAT_DIALOG_DATA) data) {}
错误
:
StaticInjectorError
(
AppModule
)ResultGridComponent ->
InjectionToken
MatDialogData:
StaticInjectorError
(平台:核心)ResultGridComponent ->
浏览 0
提问于2019-03-09
得票数 4
1
回答
角度材质中
没有
InjectionToken
错误
的
提供
程序
angular
、
angular-material
项目是正确设置的角度材料和编译
没有
任何问题,我能够使用几个角度材料组件。 但是当我尝试在
AppModule
中执行下面的注入时,我得到了
错误
。@Inject(MAT_EXPANSION_PANEL_DEFAULT_OPTIONS) private options: any
错误
消息:
StaticInjectorError
(Platform:core)[AppComponent ->
InjectionToken
MAT_EXPANSION_PANEL_DEFAULT_OPTIONS
浏览 20
提问于2020-01-18
得票数 3
回答已采纳
5
回答
无法在外部库中使用HttpClient
angular
、
angular-httpclient
当我试图在外部库中实例化HttpClient服务,然后在一个角度应用
程序
中使用该库时,我将得到
StaticInjectorError
错误
:AppComponent_Host.ngfactory.js[sm]:1 ERROR Error:
StaticInjectorError
[
InjectionToken
DocumentToken]:
浏览 11
提问于2018-01-09
得票数 20
1
回答
serviceFactory作为
提供
者对象中的依赖关系(deps:[]) --它有可能吗?
angular
、
angular2-providers
我在app.module中将
提供
者定义为: multi: true,Error:
StaticInjectorError
(
AppModule
)[
InjectionToken
HTTP_INTERCEPTORS -> [object Object]]:
StaticInjectorError
(Platform: core)[
In
浏览 3
提问于2019-09-18
得票数 0
1
回答
角材料UI
InjectionToken
MAT_TAB_GROUP误差
angular
、
angular-material
<mat-tab [label]="label" [disabled]="disabled"></mat-tab> 当我启动系统时,我会得到以下
错误
错误
:未知(承诺):
NullInjectorError
: R3InjectorError(
AppModule
)
InjectionToken
MAT_TAB_GROUP ->
Injec
浏览 0
提问于2021-05-21
得票数 0
1
回答
角7:属性'do‘在'Observable<HttpEvent<any>>’类型中不存在
angular
、
rxjs
、
angular7
HttpErrorResponse) { } }我在app.module.ts中添加了
提供
程序
provide: HTTP_INTERCEPTORS, multi: true, ] 我犯了这个
错误
错误
:
StaticInjectorError
(
AppModule
)<e
浏览 0
提问于2018-12-19
得票数 0
3
回答
如何在延迟加载模块中添加第三方服务?关于TranslateService(@ngx)和OverlayModule的例子
angular
、
lazy-loading
lang); this.translateService.use(lang);我得到的
错误
是: “
错误
:未知(在承诺中):
Nul
浏览 2
提问于2020-01-15
得票数 1
2
回答
eChart异常(NgxEchartsDirective ->
InjectionToken
NGX_ECHARTS_CONFIG)
angular
我正在使用ngx-电子海图在角7应用.我正在遵循链接中的示例:
错误
:
StaticInjectorError
(
AppModule
)NgxEchartsDirective->
InjectionToken
NGX_ECHARTS_CONFIG:
StaticInjectorError
(平台:核心)NgxEchartsDirective ->
InjectionToken
NGX
浏览 15
提问于2020-07-07
得票数 0
1
回答
不能向“`HttpInterceptor`”中注入“`Route`”或“`ActivatedRouteSnapshot`”
angular
、
angular-router
、
angular-dependency-injection
它失败了,有一条标准消息说:
StaticInjectorError
(
AppModule
)
InjectionToken
HTTP_INTERCEPTORS -> ActivatedRouteSnapshot:
StaticInjectorError
(平台:核心)
InjectionToken
HTTP_INTERCEPTORS -> ActivatedRouteSnapshot:
NullInjectorError
:无ActivatedRouteSnapshot
提供<
浏览 0
提问于2018-10-02
得票数 1
回答已采纳
1
回答
如何在jasmine角度测试中模拟@ng-toolkit/universal的
窗口
对象?
angular
、
unit-testing
、
karma-jasmine
、
angular-universal
我正在为一个注入@ng-toolkit/universal的
窗口
对象的服务编写单元测试。我想在我的单元测试中创建一个相同的模拟对象。我收到一个
错误
StaticInjectorError
(Platform: core)[CommonService ->
InjectionTok
浏览 10
提问于2019-08-20
得票数 1
3
回答
NullInjectorError
:
InjectionToken
MatDialogData
没有
提供
程序
angular
、
jasmine
、
angular-material
、
karma-jasmine
在我的Angular应用
程序
上运行jasmine测试时,我得到了这个
错误
。Error:
StaticInjectorError
(DynamicTestModule)[MyEditDialogComponent ->
InjectionToken
MatDialogData]:
StaticInjectorError
(Platform: core)[MyEditDialogComponent ->
InjectionToken
MatDialogData]:
NullInj
浏览 193
提问于2019-09-18
得票数 15
回答已采纳
2
回答
角为6的
StaticInjectorError
(
AppModule
)
窗口
angular
、
typescript2.0
如何使用
窗口
从位置打开excel文件?Window) { } 它显示了下面提到的
错误
:
错误
错误
:未知(承诺):
错误
:
StaticInjectorError
(
AppModule
)CouponUsageReportComponent ->
窗口<
浏览 0
提问于2018-09-24
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券