TomJerry56

Results 8 comments of TomJerry56

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?

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"...

> 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...

> @TomJerry56 What was cause this issue appear? Upgradation of react-native to 0.71, react to 18, gradle, node and its respective dependencies

@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...

> 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,...