錯(cuò)誤提示:Cannot find name 'Set'. Do you need to change your target library? Try changing the lib compiler option to 'es2015' or later.
錯(cuò)誤截圖 :
圖一
錯(cuò)誤解決方案:找到項(xiàng)目中tsconfig.json 將 target:es5 修改為 es6 如下圖所示
圖二
再次執(zhí)行即可
錯(cuò)誤提示:Cannot find name 'Set'. Do you need to change your target library? Try changing the lib compiler option to 'es2015' or later.
錯(cuò)誤截圖 :
錯(cuò)誤解決方案:找到項(xiàng)目中tsconfig.json 將 target:es5 修改為 es6 如下圖所示
再次執(zhí)行即可