tsconfig.json
文件如下,不管lib
是换成esnext
还是es2017
es2017.String
都不能消除这个错误,请大佬指点一下该怎么解决?
{
"include": ["xxxx"],
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
],
"allowJs": true,
"declaration": true,
"sourceMap": true,
"outDir": "lib",
"rootDir": "source",
"strict": true,
"types": [],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}