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.

Error while using 5.0.x

See original GitHub issue

Current behaviour

I was using 5.0.0-rc.8 and installed 5.0.1 but see the errors while running the iOS app.

ERROR  TypeError: Cannot read property 'colors' of undefined, js engine: hermes
ERROR  Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
        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., js engine: hermes

Expected behaviour

It should work without any issues.

What have you tried so far?

I tried to use 5.0.0 and 5.0.1 but both didn’t work.

Your Environment

software version
ios 16.1
react-native 0.70.3
react-native-paper 5.0.1
node 16.13.0
npm 8.1.0

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lukewalczakcommented, Dec 19, 2022

The problem was not updated doc after renaming adaptNavigationTheme themes keys, fixed in the commit: https://github.com/callstack/react-native-paper/commit/f972f427060babb75073601ad234ba46b581fbe3

The correct solution is:

const { LightTheme, DarkTheme } = adaptNavigationTheme({
  reactNavigationLight: NavigationDefaultTheme,
  reactNavigationDark: NavigationDarkTheme,
});
0reactions
lukewalczakcommented, Dec 19, 2022

Hey @Aliendreamer, once I will find some time will check your repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Confluence always displays "Error While Sending ... - Jira
Confluence always displays "Error While Sending" message when sharing a page with multiple users, although the notifications are sent without problem.
Read more >
Amazon.com: ANLEY 5" X 3" Diesel Only Decal 3Pcs
ANLEY 5" X 3" Diesel Only Decal 3Pcs - Reflective Diesel Only Sign on Fuel Tank Signage to Prevent User Error - Adhesive...
Read more >
5 Troubleshooting - MIT
x says 'error while loading shared libraries' or 'cannot open shared object file' and does not start. Possible reasons: If you are running...
Read more >
Removing an ESXi 5.x host from vCenter Server Inventory fails ...
Removing an ESXi 5.x host from vCenter Server Inventory fails with the error: Invalid Fault (2020565) · On vCenter Server select the ESXi...
Read more >
Spring Framework upgrade 5.X leads to error class file for org ...
I can see last version the exact same code works with Spring 4.3.9 (last of 4.X release) and breaks with Spring 5.0.0 (First...
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