最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
angular6 Error:Debug Failure at typeToString解决分析
时间:2026-06-10 10:16:47 编辑:袖梨 来源:一聚教程网
错误详情
如下:

ERROR in : Error: Debug Failure.
at typeToString (F:workangularweb-idenode_modulestypescriptlibtypescript.js:28777:22)
at reportRelationError (F:workangularweb-idenode_modulestypescriptlibtypescript.js:34714:34)
at isRelatedTo (F:workangularweb-idenode_modulestypescriptlibtypescript.js:34860:21)
at checkTypeRelatedTo (F:workangularweb-idenode_modulestypescriptlibtypescript.js:34697:26)
at checkApplicableSignature (F:workangularweb-idenode_modulestypescriptlibtypescript.js:40608:26)
at resolveCall (F:workangularweb-idenode_modulestypescriptlibtypescript.js:41011:17)
at resolveCallExpression (F:workangularweb-idenode_modulestypescriptlibtypescript.js:41163:20)
at resolveSignature (F:workangularweb-idenode_modulestypescriptlibtypescript.js:41398:28)
at getResolvedSignature (F:workangularweb-idenode_modulestypescriptlibtypescript.js:41430:26)
at checkCallExpression (F:workangularweb-idenode_modulestypescriptlibtypescript.js:41479:29)
at checkExpressionWorker (F:workangularweb-idenode_modulestypescriptlibtypescript.js:42950:28)
at checkExpression (F:workangularweb-idenode_modulestypescriptlibtypescript.js:42898:42)
at checkExpressionStatement (F:workangularweb-idenode_modulestypescriptlibtypescript.js:44962:13)
at checkSourceElement (F:workangularweb-idenode_modulestypescriptlibtypescript.js:46746:28)
at Object.forEach (F:workangularweb-idenode_modulestypescriptlibtypescript.js:1506:30)
at checkBlock (F:workangularweb-idenode_modulestypescriptlibtypescript.js:44563:16)
原因分析
我代码里出现这个错误的原因是在定义Map的时候,值为数组类型,但未给数组赋值泛型
如下:
public renderStateMap = new Map<string, []>();
解决方案
只需要给数组添加类型即可:
public renderStateMap = new Map<string, any[]>();
以上就是angular6 Error:Debug Failure at typeToString解决分析的详细内容,更多关于angular6 Error解决的资料请关注其它相关文章!
相关文章
- 土豆视频网页版入口-土豆视频高清在线播放 12-01
- Hitomi.la最新镜像网站入口 - 2026可用国内访问地址分享 11-26
- 土豆视频网页版入口地址-土豆视频在线播放入口 11-17
- 哔哩哔哩官方网页版入口地址-哔哩哔哩blibili手机电脑网页版入口地址 11-16
- AO3镜像网站最新入口汇总 - 2026可用镜像链接列表 11-16
- 超星学生通登录入口-超星官网网页版登录入口 11-13