error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
原创
52cxy
07-25 10:55
回复数:1
error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
共1条回答
52cxy·2024/07/25
增加--target es6选项,默认是es5,而es5不支持Map。
tsc --target es6 hello.ts
评论
举报
最近更新
- General error: 1366 Incorrect string value: '
- cURL and libcurl 有何区别与联系
- PHP_XLSXWriter 使用教程
- postgres installation the database cluster in
- error TS2583: Cannot find name 'Map'. Do you
- Failed to mount component: template or render
- Error: libzip5-tools conflicts with libzip-0.
- Got error 'PHP message: PHP Fatal error: Unc
- mysql中使用select into from报错
- General error: 1390 Prepared statement contai