Build error on initial app RN 0.67.2
See original GitHub issueDescription
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
- npx react-native init test (current latest RN version is 0.67.2)
- install Reanimated…
- 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;
- 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:
- Created 2 years ago
- Reactions:2
- Comments:6
Top 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 >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
Hurts my heart when the fix is downgrading. 💔
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