CRNA app throws a lot of console errors on iPhone device
See original GitHub issueDescription
Today, my working CRNA app started to throw lots of console errors if run on iPhone device. This doesn’t happens on Android device.
The very same app was working just fine yesterday on iPhone device!
Expected Behavior
CRNA app work just fine with iPhone device like yesterday
Observed Behavior
The app keeps diplaying loading icon and indicates “Downloading JavaScript bundle”, also throws insanely lots of errors logs in console +2100 in 10 seconds!
[UPDATE]: If I run the project from XDE client app, it works…
Excerpt:
`ScrollView` has no propType for native prop `RCTScrollView.contentInsetAdjustmentBehavior` of native type `UIScrollViewContentInsetAdjustmentBehavior`
If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.
handleException @ crna-entry.bundle:14460
handleError @ crna-entry.bundle:15671
reportFatalError @ crna-entry.bundle:680
guardedLoadModule @ crna-entry.bundle:65
_require @ crna-entry.bundle:54
(anonymous) @ crna-entry.bundle:47810
emit @ crna-entry.bundle:8088
__callFunction @ crna-entry.bundle:6266
(anonymous) @ crna-entry.bundle:6103
__guard @ crna-entry.bundle:6237
callFunctionReturnFlushedQueue @ crna-entry.bundle:6102
(anonymous) @ debuggerWorker.js:72
crna-entry.bundle:14468 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.
Check your code at AppContainer.js:65.
reactConsoleErrorHandler @ crna-entry.bundle:14468
console.error @ crna-entry.bundle:50589
printWarning @ crna-entry.bundle:21518
warning @ crna-entry.bundle:21539
createElement @ crna-entry.bundle:23960
(anonymous) @ crna-entry.bundle:47811
emit @ crna-entry.bundle:8088
__callFunction @ crna-entry.bundle:6266
(anonymous) @ crna-entry.bundle:6103
__guard @ crna-entry.bundle:6237
callFunctionReturnFlushedQueue @ crna-entry.bundle:6102
(anonymous) @ debuggerWorker.js:72
crna-entry.bundle:14460 Requiring module "ScrollView", which threw an exception: Error: `ScrollView` has no propType for native prop `RCTScrollView.contentInsetAdjustmentBehavior` of native type `UIScrollViewContentInsetAdjustmentBehavior`
If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.
handleException @ crna-entry.bundle:14460
handleError @ crna-entry.bundle:15671
reportFatalError @ crna-entry.bundle:680
guardedLoadModule @ crna-entry.bundle:65
_require @ crna-entry.bundle:54
render @ crna-entry.bundle:51025
(anonymous) @ crna-entry.bundle:26371
measureLifeCyclePerf @ crna-entry.bundle:26128
_renderValidatedComponentWithoutOwnerOrContext @ crna-entry.bundle:26370
_renderValidatedComponent @ crna-entry.bundle:26379
_updateRenderedComponent @ crna-entry.bundle:26343
_performComponentUpdate @ crna-entry.bundle:26330
updateComponent @ crna-entry.bundle:26305
receiveComponent @ crna-entry.bundle:26269
receiveComponent @ crna-entry.bundle:25863
updateChildren @ crna-entry.bundle:27288
_reconcilerUpdateChildren @ crna-entry.bundle:27431
_updateChildren @ crna-entry.bundle:27471
updateChildren @ crna-entry.bundle:27465
receiveComponent @ crna-entry.bundle:27540
receiveComponent @ crna-entry.bundle:25863
_updateRenderedComponentWithNextElement @ crna-entry.bundle:26350
_updateRenderedComponent @ crna-entry.bundle:26344
_performComponentUpdate @ crna-entry.bundle:26330
updateComponent @ crna-entry.bundle:26305
receiveComponent @ crna-entry.bundle:26269
receiveComponent @ crna-entry.bundle:25863
_updateRenderedComponentWithNextElement @ crna-entry.bundle:26350
_updateRenderedComponent @ crna-entry.bundle:26344
_performComponentUpdate @ crna-entry.bundle:26330
updateComponent @ crna-entry.bundle:26305
performUpdateIfNecessary @ crna-entry.bundle:26272
performUpdateIfNecessary @ crna-entry.bundle:25868
runBatchedUpdates @ crna-entry.bundle:25990
perform @ crna-entry.bundle:25901
perform @ crna-entry.bundle:25901
perform @ crna-entry.bundle:25973
flushBatchedUpdates @ crna-entry.bundle:25997
closeAll @ crna-entry.bundle:25932
perform @ crna-entry.bundle:25906
batchedUpdates @ crna-entry.bundle:26593
enqueueUpdate$1 @ crna-entry.bundle:26002
enqueueUpdate @ crna-entry.bundle:26032
enqueueSetState @ crna-entry.bundle:26066
ReactComponent.setState @ crna-entry.bundle:22801
(anonymous) @ crna-entry.bundle:47825
emit @ crna-entry.bundle:8088
__callFunction @ crna-entry.bundle:6266
(anonymous) @ crna-entry.bundle:6103
__guard @ crna-entry.bundle:6237
callFunctionReturnFlushedQueue @ crna-entry.bundle:6102
(anonymous) @ debuggerWorker.js:72
crna-entry.bundle:14468 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.
Check your code at YellowBox.js:411.
in YellowBox (at AppContainer.js:95)
in RCTView (at View.js:113)
in View (at AppContainer.js:121)
in AppContainer (at renderApplication.js:34)
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
: ├── UNMET PEER DEPENDENCY react-native@0.47.2 └── react-native-scripts@1.3.1npm ls react-native
: UNMET PEER DEPENDENCY react-native@0.47.2npm ls expo
: ├─┬ expo@20.1.3 │ └── UNMET PEER DEPENDENCY react@>=15.3.1 └── UNMET PEER DEPENDENCY react-native@0.47.2node -v
: v7.10.1npm -v
: 4.2.0yarn --version
: 1.0.1watchman version
: none
Also specify:
- Operating system: Ubutnu 16.04 latest
- Phone/emulator/simulator & version: iPhone 7+ iOS 10.3.1
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Diagnosing and resolving bugs in your running app
Inspect your running app to isolate bugs, locate crashes, identify excess system resource usage, visualize memory bugs, and investigate view layout ...
Read more >React-Native (CRNA) Packager stops running - Stack Overflow
While running the packager I tried to reach the address through my browser and it seems to work for a while (it says...
Read more >NLm - River Thames Conditions
S.c.r.a.m. device? Fermacell powerpanel hd brandschutz? Shoe manufacturers association canada, 39 16 prince street flushing!
Read more >Real-world ReactNative apps made easy with React Native ...
Opening the CRNA app on a real device via Expo ... Since it's not a compiled language, error are discovered when the JavaScript...
Read more >invokecallbackandreturnflushedqueue@[native code] - You.com ...
React native error invokeCallbackAndReturnFlushedQueue@[native code] ... i used useEffect hooks, but it's not working too. i'm spending lots of time but not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, the issue was some incompatibility with the versions of some modules, and the error was the same.
What I did to solve the problem was:
create-react-native-app foo
package.json
and update the versions of the dependencies to match those in foo’spackage.json
.sdkVersion
in the fileapp.json
and update if necessary.node_modules
and reinstall all the packages.This fixed it for me. I hope it helps!
Hi everyone! It doesn’t look like there’s an obvious reproduction of this issue at the moment. If you’re consistently seeing these errors please post back with an example of a project I can clone that will trigger these error logs and I’ll reopen. Thanks!