Closed hectorpla closed 5 years ago
I have renamed the top level App.js to App.tsx but when running simulator, js bundle failed to build because of the following error. Unable to resolve "../../App" from "node_modules/expo/AppEntry.js".
Unable to resolve "../../App" from "node_modules/expo/AppEntry.js"
dependencies: "@expo/samples": "2.1.1", "expo": "^30.0.1", "react": "16.3.1", "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz", "react-navigation": "^2.16.0", "ts-jest": "^23.10.1"
"@expo/samples": "2.1.1", "expo": "^30.0.1", "react": "16.3.1", "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz", "react-navigation": "^2.16.0", "ts-jest": "^23.10.1"
Thanks!
Solved by adding an App.js export the root component. refer to https://github.com/janaagaard75/expo-and-typescript
I have renamed the top level App.js to App.tsx but when running simulator, js bundle failed to build because of the following error.
Unable to resolve "../../App" from "node_modules/expo/AppEntry.js"
.dependencies:
"@expo/samples": "2.1.1", "expo": "^30.0.1", "react": "16.3.1", "react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz", "react-navigation": "^2.16.0", "ts-jest": "^23.10.1"
Thanks!