'RN Android app looking for ReanimatedModule.default.createNode when there is no reference to it

I know there is another question with this error, but it's not my problem somehow. I am using react-native-pager-view, and was using it successfully until it stopped working on Android. The only thing I did (I think) was install react-native-reanimated and then uninstall it.

There is no trace of it in my project:

enter image description here

(These are just references in the iOS app so will have no bearing on the Android build.)

I get the following error:

[Fri Feb 04 2022 16:23:40.812]  ERROR    TypeError: null is not an object (evaluating '_ReanimatedModule.default.createNode')
[Fri Feb 04 2022 16:23:40.813]  LOG      Running "main" with {"rootTag":1}
[Fri Feb 04 2022 16:23:40.813]  ERROR    Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.

I have tried deleting my node modules, reinstalling, cleaning gradle, restarting metro with --clear-cache, all that good stuff. Any ideas? Why is it complaining about a lack of a reference to re-animated when there is no reference to it at all in my project, including in node_modules?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source