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.

Build error on initial app RN 0.67.2

See original GitHub issue

Description

There’s an error while simplest npx init for current RN version 0.67.2, and everything was fine for RN 0.64.2…

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., js engine: hermes

Actual behavior & steps to reproduce

  1. npx react-native init test (current latest RN version is 0.67.2)
  2. install Reanimated…
  3. replace App.js by:
import {View} from 'react-native';

import Animated from 'react-native-reanimated';

const App = () => (
  <View style={{height: 100, aspectRatio: 1, backgroundColor: 'tomato'}} />
);

export default App;
  1. npx react-native run-android and you’ll get the error above.

Snack or minimal code example

Just create an app by calling npx react-native test, install Reanimated, import Reanimated lib from App.js and try to run…

Package versions

“react”: “17.0.2”, “react-native”: “0.67.2”, “react-native-reanimated”: “^2.3.1”

Affected platforms

  • [x ] Android
  • iOS
  • Web

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

6reactions
itsmelioncommented, Mar 17, 2022

Hurts my heart when the fix is downgrading. 💔

3reactions
milan2skycommented, Feb 5, 2022

fuck It seems that I have also this error in one of my projects

Update: I fixed it somehow by adding the reanimated bable plugin & after that I completely rebuilt the app + npx react-native start --reset-cache

Read more comments on GitHub >

github_iconTop Results From Across the Web

A failure occurred while executing com.android.build.gradle ...
You can resolve this problem by forcing the React Native dependency to the version you expect with something like this implementation 'com.
Read more >
"React Native version mismatch" errors - Expo Documentation
If this is a managed workflow project, either remove the sdkVersion field from your app.json file, or make sure it matches the value...
Read more >
react native error build: command phasescriptexecution failed with a ...
You.com is an ad-free, private search engine that you control. Customize search results with 150 apps alongside web results. Access a zero-trace private ......
Read more >
react-native - npm
A framework for building native apps using React. ... Requirements; Building your first React Native app; Documentation; Upgrading ...
Read more >
Error: Failed with Exit Code 1 | Apple Developer Forums
/Users/"XCODE User"/Library/Developer/Xcode/DerivedData/snhdfulltwo-gcolusufnwanpucbuotwpflksyqp/Build/Products/Debug-iphoneos/snhdfulltwo.app/Frameworks/ ...
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