我的tsconfig.json没有配置lib为什么没提示异常
来源:4-1 tsconfig,json 核心配置详讲-1

单车麦浪
2024-05-21
老师,我的tsconfig.json配置如下:
{
"compilerOptions": {
"target": "ES2015",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
在 index.ts 中能正常使用DOM语法和Set
const myset = new Set();
document.querySelector(".sd");
export {};
不像视频里面的会出现提示Set/document找不到的问题,想问下为什么?
写回答
1回答
-
keviny79
2024-05-21
同学把ts版本和配置设置的和老师的完全相同再试试。012024-05-21
相似问题