文章内容

2019/4/23 15:03:02,作 者: 黄兵

ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.3.0 but 3.4.4 was found instead.

最近升级Typescript到3.4.4出现了如下错误:

ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.3.0 but 3.4.4 was found instead.


出现问题的原因:

Angular Compiler需要Typescript 在3.1.1至3.3.0之间,但是当前安装了3.4.4版本。


解决方案:

将TypeScript降级到:3.1.1至3.3.0之间。

经过测试如果升级Angular Compiler任然无法解决这个问题。

安装TypeScript版本3.1.1至3.3.0之间,具体命令为:

npm install typescript@">=3.1.1 <3.3.0"

之后再次重新生成,成功。



参考资料:

1、The Angular Compiler requires TypeScript >=2.7.2 and <2.10.0 but 3.0.1 was found instead.


黄兵个人博客原创。

转载请注明出处:黄兵个人博客 - ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.3.0 but 3.4.4 was found instead.

分享到:

发表评论

评论列表

user-ico

e on 回复 有用(0

e


user-ico

e on 回复 有用(0

e