Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6290

Error in folder structure using typescript, expo and react-native

$
0
0

I set up a new typescript project on react native using expo and tried to use "src" as the folder structuretsconfig.json is defined like this

{"compilerOptions": {"noImplicitAny": true,"noEmit": true,"allowSyntheticDefaultImports": true,"allowJs": true,"esModuleInterop": true,"isolatedModules": true,"jsx": "react-native","lib": ["es6", "dom", "esnext"],"moduleResolution": "node","baseUrl": ".","skipLibCheck": true,"resolveJsonModule": true,"paths": {"@app/*": ["./src/*"]    }  },"include": ["src/**/*", "src/App.tsx"],"extends": "expo/tsconfig.base"}

The main error is this

Logs for your project will appear below. Press Ctrl+C to exit.iOS Bundling failed 29msUnable to resolve "../../App" from "node_modules/expo/AppEntry.js"› Reloading appsiOS Bundling failed 7msUnable to resolve "../../App" from "node_modules/expo/AppEntry.js"› Reloading appsiOS Bundling failed 4msUnable to resolve "../../App" from "node_modules/expo/AppEntry.js"

my folderfolder_structure

I tried all the methods used in other topics related to this on stackverflow but nothing that was similar helped


Viewing all articles
Browse latest Browse all 6290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>