使用ts-node demo.ts命令报错
1.TSError: ⨯ Unable to compile TypeScript:code.ts:1:1 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.1 console.log("hello TS");最近在学习typescript 报了个错, 有点...
原创
2021-11-04 21:36:25 ·
2379 阅读 ·
1 评论