Cannot find name ‘Set‘. Do you n
2021-05-17 本文已影响0人
zlzbt
错误提示: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 如下图所示
再次执行即可