WebStorm - Argument type {providedIn: “root”} is not assignable to parameter type {providedIn: Type<any> | “root” | null} & InjectableProvider

北慕城南 提交于 2019-11-30 11:01:58

Believe me or not, I closed and opened my project in Webstorm and the error just disappeared

Thx @yurzui and @AdrianFâciu for the support

UPDATE

It turns out it was a confirmed bug in Webstorm which was later corrected in v2018.1.5 and published Sunday 17th August 2018. I have updated my editor to this version and didn't face the problem anymore

Webstorm issue tracker: https://youtrack.jetbrains.com/issue/WEB-32634

v2018.1.5 release notes: https://confluence.jetbrains.com/display/WI/WebStorm+181.5281.31+Release+Notes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!