TomJerry56
TomJerry56
Invariant Violation: "app" has not been registered - AppRegistry.js | runnables[appKey] is undefined
I'm facing the same issue with react-native 0.71. Not using redux createStore in my case. The index.js, app.json and MainActivity re same as above. Any quick help?
Invariant Violation: "app" has not been registered - AppRegistry.js | runnables[appKey] is undefined
index.js: import { AppRegistry } from 'react-native'; import main from './app'; import {name as appName} from './app.json'; AppRegistry.registerComponent(appName, () => main); export default main; app.json: { "name": "main", "displayName": "main"...
Invariant Violation: "app" has not been registered - AppRegistry.js | runnables[appKey] is undefined
> This error also caused when you running metro bundler of different project is not closed. So **try to kill all metro bundlers** as well as **restart your PC** check...
Invariant Violation: "app" has not been registered - AppRegistry.js | runnables[appKey] is undefined
> @TomJerry56 What was cause this issue appear? Upgradation of react-native to 0.71, react to 18, gradle, node and its respective dependencies
Invariant Violation: "app" has not been registered - AppRegistry.js | runnables[appKey] is undefined
@vikil143 Tried debugging the issue, Understood that the issue is due to the 'require' statements in the js files. The error is thrown wherever export/import is used in tsx files...
Invariant Violation: "app" has not been registered - AppRegistry.js | runnables[appKey] is undefined
> @artemis-prime Still it is not resolved.
> jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter'); jest.setup.json file doesn't exist
> You have to create it El El mar, 27 jun 2023 a las 11:35, TomJerry56 ***@***.***> escribió: > jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter'); jest.setup.json file doesn't exist — Reply to this email directly,...