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

react-native-cli #162

Closed
hildjj opened this issue Nov 9, 2021 · 5 comments
Closed

react-native-cli #162

hildjj opened this issue Nov 9, 2021 · 5 comments

Comments

@hildjj
Copy link
Owner

hildjj commented Nov 9, 2021

Hi! First of all great that you have implemented this package for RN!
However I can't get this to work with react-native-cli (not Expo)

When i try to require cbor-rn-prereqs i get a following error:

$ Error: Requiring unknown module "undefined". If you are sure the module exists, try restarting Metro. You may also want to run `yarn` or `npm install`.

$ ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

I tried cleaning the project, uninstalling and installing dependencies again - restarting terminals and caches, deleting the bundle from the devices/simulators - but this error persists.

If you are interested this is a fresh RN project I tried to apply this configuration with.

Also happy to give more details! I would love to help debugging this, but I'm afraid I am so fresh, I don't have any idea from where to start.. Cheers!

Originally posted by @rottabonus in #158 (comment)

@hildjj
Copy link
Owner Author

hildjj commented Nov 9, 2021

I really don't want to install all of Android Studio to reproduce this. Can someone else help, please?

@hildjj
Copy link
Owner Author

hildjj commented Nov 9, 2021

OK, I finally got the iOS target running, and it has the same issue. I think I've got it nailed down, but will require a release of @cto.af/textdecoder as well.

@hildjj
Copy link
Owner Author

hildjj commented Nov 9, 2021

Fixed for ios in 8.1.0, please test with Android, and re-open this issue if needed.

@rottabonus
Copy link

Wow, you are a star! I tested with Android emulator and device. Works fine!

@hildjj
Copy link
Owner Author

hildjj commented Jan 6, 2022

For those who come along later, read the instructions here for how to work around ReactNative's non-modern implementation of JavaScript.

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