React Native Android error in com.facebook.react.bridge.NoSuchKeyException
This is a problem caused by the stacktrace-parser library which is used internally by react native. Basically, release 0.1.4 works fine while releases 0.1.5 and 0.1.6 causes the lineNumber error.
Do the following to fix this:
- If you are using yarn add the following to your package.json:
"resolutions": {
"stacktrace-parser": "0.1.4"
},
if you are using npm add the following to your package.json:
"dependencies": {
...
"stacktrace-parser": "0.1.4"
- Remove the yarn.lock (or package-lock.json) file and the node_modules directory.
- Install the packages
yarn install
(ornpm install
) - Rebuild your release build.
I hope this helps others until the library gets fixed.