Cannot find name ‘Set‘. Do you need to change your target library? Try changing the `lib` compiler o
Posted zlzbt
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot find name ‘Set‘. Do you need to change your target library? Try changing the `lib` compiler o相关的知识,希望对你有一定的参考价值。
错误提示:Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to 'es2015' or later.
错误截图 :
错误解决方案:找到项目中tsconfig.json 将 target:es5 修改为 es6 如下图所示
再次执行即可
以上是关于Cannot find name ‘Set‘. Do you need to change your target library? Try changing the `lib` compiler o的主要内容,如果未能解决你的问题,请参考以下文章
新建vue项目使用requier提示Cannot find name 'requier'.
Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make i