Reactjs TypeScript未忽略节点\模块库
我正在从事react项目,react版本15.4.2。。这是一个现有的项目,我需要有它在同一个版本。我还有一个tsconfig文件。我尝试使用react material ui:Reactjs TypeScript未忽略节点\模块库,reactjs,typescript,tsconfig,formsy-material-ui,Reactjs,Typescript,Tsconfig,Formsy Material Ui,我正在从事react项目,react版本15.4.2。。这是一个现有的项目,我需要有它在同一个版本。我还有一个tsconfig文件。我尝试使用react material ui: npm install material-ui@v1.0.0-beta.47 --save 当我尝试启动服务器时,会出现以下错误: [17:00:59]错误-键入脚本- 节点\u modules\csstype\index.d.ts(14427101):错误TS1005:')' 预期。[17:00:59]错误-键入脚
npm install material-ui@v1.0.0-beta.47 --save
当我尝试启动服务器时,会出现以下错误:
[17:00:59]错误-键入脚本-节点\u modules\csstype\index.d.ts(14427101):错误TS1005:')'
预期。[17:00:59]错误-键入脚本-
node_modules\csstype\index.d.ts(14439,89):错误TS1005:','预期。
[17:00:59]错误-键入脚本-
node_modules\csstype\index.d.ts(14451,89):错误TS1005:','预期。
[17:00:59]错误-键入脚本-
node_modules\csstype\index.d.ts(14463,65):错误TS1005:'('预期。
[17:00:59]错误-键入脚本-
节点\u modules\csstype\index.d.ts(14463107):错误TS1005:')'
预期。[17:00:59]错误-键入脚本-
node_modules\csstype\index.d.ts(14475,74):错误TS1005:','预期。
[17:00:59]错误-键入脚本-
node_modules\csstype\index.d.ts(14487,55):错误TS1005:'('预期。
[17:00:59]错误-键入脚本-
节点\u modules\csstype\index.d.ts(14487,92):错误TS1005:“)”应为“。
[17:00:59]错误-键入脚本-
node_modules\csstype\index.d.ts(14499,77):错误TS1005:','预期。
[17:00:59]错误-键入脚本-
节点\u modules\csstype\index.d.ts(14512,67):错误TS1005:“(”应为“” 这是我的tsconfig.json:
{
"compilerOptions": {
"target": "es5",
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"jsx": "react",
"declaration": true,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"typeRoots": [
"./node_modules/@types"
],
"types": [
],
"lib": [
"es5",
"es6",
"dom",
"es2015.collection"
]
},
"exclude": [
"./node_modules/*"
]
}
我尝试了一切,使用exclude,或者将es6添加为lib,甚至在tsconfig中使用空类型数组
有什么想法吗