[IOS] Builds but won't work. Says it has some issues with finding @babel/runtime file
Alashybay opened this issue · 1 comments
Alashybay commented
BUNDLE ./index.tsx
error: Error: Unable to resolve module @babel/runtime/helpers/interopRequireDefault from /Users/.../react-native-ttlock/src/index.tsx: @babel/runtime/helpers/interopRequireDefault could not be found within the project.
If you are sure the module exists, try these steps:
- Clear watchman watches: watchman watch-del-all
- Delete node_modules and run yarn install
- Reset Metro's cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro-*
1 | import {
2 | NativeModules,
3 | NativeEventEmitter,
4 | // EmitterSubscription,
already tried to reinstall all modules again, still wont work. Installed @babel/runtime module and no change. Would appreciate help from anyone! Thanks!
myleslouw commented
Found that npm installing in the main directory as well as the "example" directory will get it to run