ttlock/react-native-ttlock

[IOS] Builds but won't work. Says it has some issues with finding @babel/runtime file

Alashybay opened this issue · 1 comments

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:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. 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!

Found that npm installing in the main directory as well as the "example" directory will get it to run