Angular Compilation Error: Deprecation warning

huangapple go评论74阅读模式
英文:

Angular Compilation Error: Deprecation warning

问题

自从升级到Angular 13以后,我开始收到这个弃用警告。

TypeError: message.trim is not a function
at Function.Rule.FAILURE_STRING (/home/app/node_modules/tslint/lib/rules/deprecationRule.js:30:81)
at cb (/home/app/node_modules/tslint/lib/rules/deprecationRule.js:57:53)

应用程序仍然正常运行,但每次构建应用程序时都会出现此错误。

即使在Angular 14中,仍然存在此警告。

英文:

I have started getting this deprecation warning ever since upgraded to Angular 13.


TypeError: message.trim is not a function
at Function.Rule.FAILURE_STRING (/home/app/node_modules/tslint/lib/rules/deprecationRule.js:30:81)
at cb (/home/app/node_modules/tslint/lib/rules/deprecationRule.js:57:53)

App works fine but it spits this error every time building the app.

This warning is present even with Angular 14.

答案1

得分: 1

尝试更新到最新版本的 tslint

npm install tslint@latest
英文:

Try updating to the latest version of tslint

npm install tslint@latest

huangapple
  • 本文由 发表于 2023年3月3日 20:10:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/75626906.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定