tsconfig 文件中的语法错误?
Syntax error in tsconfig file?
不知道为什么,但在我刚创建的 tsconfig.js 文件中出现解析错误。
资料来源:https://www.typescriptlang.org/docs/handbook/react-&-webpack.html
想法?
{
"compilerOptions": {
"outDir": "./moonholdings/",
"sourceMap": true,
"noImplicitAny": true,
"module": "commonjs",
"target": "es6",
"jsx": "react"
},
"include": [
"./app/**/*"
]
}
文件扩展名应该是 .json
,而不是 .js
。
不知道为什么,但在我刚创建的 tsconfig.js 文件中出现解析错误。 资料来源:https://www.typescriptlang.org/docs/handbook/react-&-webpack.html
想法?
{
"compilerOptions": {
"outDir": "./moonholdings/",
"sourceMap": true,
"noImplicitAny": true,
"module": "commonjs",
"target": "es6",
"jsx": "react"
},
"include": [
"./app/**/*"
]
}
文件扩展名应该是 .json
,而不是 .js
。