question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 https://github.com/hildjj/node-cbor/issues/158#issuecomment-961733887_

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hildjjcommented, Nov 9, 2021

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

0reactions
hildjjcommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting up the development environment - React Native
If you are already familiar with mobile development, you may want to use React Native CLI. It requires Xcode or Android Studio to...
Read more >
react-native-community/cli - GitHub
This monorepository contains tools and helpers for React Native projects in form of a Command Line Tool (or CLI). This CLI is used...
Read more >
react-native-cli - npm
Running CLI with local modifications. React Native is distributed as two npm packages, react-native-cli and react-native .
Read more >
React Native - Environment Setup - Tutorialspoint
Step 4: Install React Native CLI. You can install react native command line interface on npm, using the install -g react-native-cli command as...
Read more >
How to Install React Native on Windows - KnowledgeHut
Software requirements · Android Studio · Android SDK · Install JDK · Node Js · NPM 3.5.2 · React native cli ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found