Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Alashybay opened this issue Aug 1, 2023 · 1 comment

Comments

@Alashybay
Copy link

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!

@myleslouw
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants