简体   繁体   English

Typescript角度属性不存在于值上

[英]Typescript angular properties doesnt exist on value

So I have this bit of code 所以我有这段代码 在此处输入图片说明

As you can see, module and IStateProvider are underlined red, saying that 如您所见, moduleIStateProvider用红色下划线表示,

the property does not exist on value of type 'typeof angular' 该属性在'typeof angular'类型的值上不存在

and

the property does not exist on value of type 'typeof angular.ui' 属性类型'typeof angular.ui'的值不存在

What's up with this error? 这是怎么回事?

What editor are your using? 您正在使用什么编辑器? Have you tried adding a reference to the angular.d.ts file? 您是否尝试过添加对angular.d.ts文件的引用?

/// ///

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM