I start metro by yarn start. Another terminal I run yarn android. While the app is installing, below error comes on metro terminal and metro stops executing:
C:\Users\SAMSUNG\Desktop\ReactNativeProjects\MyApp\node_modules\metro-hermes-compiler\src\emhermesc.js:77
throw ex;
^
Error: EPERM: operation not permitted, lstat 'C:\Users\SAMSUNG\Desktop\ReactNativeProjects\MyApp\node_modules\react-native-gesture-handler\android\build\kotlin\compileDebugKotlin\caches-jvm'
Emitted 'error' event on NodeWatcher instance at:
at NodeWatcher.<anonymous> (C:\Users\SAMSUNG\Desktop\ReactNativeProjects\MyApp\node_modules\sane\src\node_watcher.js:291:16)
at FSReqCallback.oncomplete (fs.js:168:21) {
errno: -4048,
code: 'EPERM',
syscall: 'lstat',
path: 'C:\\Users\\SAMSUNG\\Desktop\\ReactNativeProjects\\MyApp\\node_modules\\react-native-gesture-handler\\android\\build\\kotlin\\compileDebugKotlin\\caches-jvm'
}
I again launch metro by yarn start while app is being built. And when the app build finishes, following crash occurs:
BUNDLE ./index.js
ERROR TypeError: undefined is not an object (evaluating 'InnerNativeModule.installCoreFunctions')
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.
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.
I didn't understand anything. These problems occured while I was trying to add library @react-navigation/drawer with its prerequisites: yarn add react-native-gesture-handler react-native-reanimated