【发布时间】:2021-09-01 08:43:48
【问题描述】:
我正在尝试构建我的打字稿项目。它在过去使用相同的设置成功构建,但现在它没有构建,即使它没有显示任何错误。我跑:
npx tsc -p tsconfig.json
我的tsconfig.json 在哪里:
{
"compilerOptions": {
"module": "ES6",
"target": "ES6",
"declaration": true,
"outDir": "./lib",
"strict": true,
"jsx": "react-native",
"skipLibCheck": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
},
"include": [
"src/**/*"
],
"extends": "expo/tsconfig.base"
}
根本没有生成lib 文件夹。
我的src 文件夹包含几个打字稿文件,以及导出所需组件的索引。
我真的很困惑,因为我的项目结构和设置根本没有改变,tsc 不再生成 outDir 或之前工作时的任何文件。
【问题讨论】:
标签: javascript typescript react-native