uprm-inso4117-2023-2024-s2 / semester-project-study-pet

semester-project-study-pet created by GitHub Classroom
1 stars 3 forks source link

Pesky bug fix #285

Closed gabrielpadilla7 closed 5 months ago

gabrielpadilla7 commented 5 months ago

Closes #246

Updated some dependencies and packages. The explanation for the error is as follows:

error starts off by saying the following:

Uncaught error _RNGestureHandlerModule.default.flushOperations is not a function (it is undefined) js engine: hermes

Fixed it by running an update on dependencies: npm update

I then installed react-native-gesture-handler

Except this time, instead of using npm, I used npx exp

npx expo install react-native-gesture-handler

This way, the expo application was finally using the react-native-gesture-handler, and it was not returning undefined.

Even though there is no explicit way that we're using the react-native-gesture-handler, expo and react native uses it from the start, which is why this error kept popping up since the beginning of the project.

FOR THE BUG TO GET FIXED LOCALLY, NOT ONLY DOES THE PR NEED TO BE DONE, BUT BOTH COMMANDS "npm update" AND "npx expo install react-native-gesture-handler" NEED TO BE LAUNCHED IN THE CLI.