【发布时间】:2020-06-19 19:01:37
【问题描述】:
我正在使用yarn v2安装依赖包,使用yarn start命令顺利启动项目,但是vscode总是提示找不到本地模块。
这是我的tsconfig.json 文件:
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
}
这是我的文件夹结构:
【问题讨论】:
标签: typescript yarnpkg tsx yarn-v2