Leanote's Blog
I love Leanote!
Toggle navigation
Leanote's Blog
Home
Chrome
Git
Linux
Windows
Others
工具大全
VsCode
Expo
Html
JavaScript
Npm
Node
Mock
React-Native
React
TypeScript
小程序
插件
正则
Dva
Ant-Design-React
Umi
Vue
Vux
Ant-Design-Vue
Http
Java
flutter
开发小工具
About Me
Archives
Tags
umi或react在vscode上使用TypeScript语法报错问题
2019-11-14 07:46:46
19
0
0
admin
### 在`tsconfig.json`里写入下面内容: ``` { "compilerOptions": { "outDir": "build/dist", "module": "esnext", "target": "esnext", "lib": [ "esnext", "dom" ], "sourceMap": true, "baseUrl": ".", "jsx": "react", "allowSyntheticDefaultImports": true, "moduleResolution": "node", "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "suppressImplicitAnyIndexErrors": true, "noUnusedLocals": true, "allowJs": true, "experimentalDecorators": true, "strict": true, "paths": { "@/*": [ "./src/*" ] } }, "exclude": [ "node_modules", "build", "scripts", "acceptance-tests", "webpack", "jest", "src/setupTests.ts", "tslint:latest", "tslint-config-prettier" ] } ```
Pre:
dva项目转umi
Next:
umi或react在webstorm上使用TypeScript语法报错问题
0
likes
19
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.