hildjj / node-cbor

Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.
MIT License
356 stars 73 forks source link

Make using react-native a hair easier #158

Closed hildjj closed 2 years ago

hildjj commented 2 years ago

See package README for info

rottabonus commented 2 years ago

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!