简体   繁体   English

React-Native 未找到文件“expo-module-scripts/tsconfig.base”

[英]React-Native File 'expo-module-scripsts/tsconfig.base' not found

my problem is like this我的问题是这样的

// @generated by expo-module-scripts
{
  "extends": "expo-module-scripts/tsconfig.base",
  "compilerOptions": {
    "outDir": "./build"
  },
  "include": ["./src"],
  "exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__stories__/*"]
}

desciription Path to base configuration file to inherit from.描述要继承的基本配置文件的路径。 Requires TypeScript version 2.1 or later.需要 TypeScript 版本 2.1 或更高版本。 File 'expo-module-scripts/tsconfig.base' not found.ts找不到文件 'expo-module-scripts/tsconfig.base'.ts

I also had this error with another expo module, try restarting vs code and see if the problem is correct.我的另一个expo模块也出现了这个错误,尝试重启vs code看看问题是否正确。 it worked for me, probably an IDE bug它对我有用,可能是一个 IDE 错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM