Closed shockdesign closed 3 years ago
Same thing happened to me because the bundler cached the old module. Run the bundler manually with the --clear-cache
flag and see if that fixes things.
npm cache clean --force
and manually deleting node_modules/
and reinstalling still has the same issue..
@mdcone which bundler are you using --clear-cache
with?
@shockdesign, the react-native bundler. To get rid of its cache fire it up with react-native start --clear-cache
.
As @mdcone said this is likely related to stale metro cache. You can try clearing watchman cache, here's a gist that should clear all JS artifacts. If you're using iOS remember to remove Pods too.
I'm closing this but if you'll have further problems with that don't hesitate to reply.
I have the same problem too. Can't find any solution. Deleting cache, watchman, node_modules, Pods is not the solution.
@canberkardic do you use npm by any chance? We saw similar reports in the past. Try using yarn and if you can, please provide a reproducible repository – that will greatly help us resolve this error.
Description
Followed the steps to install alpha 8, then proceeded to setup my view, however none of the react-native-reanimated 2 hooks are available?
Looking at the default Animated object and I can't see the hooks there either.
And looking node_modules/react-native-reanimated/src/reanimated2 has
Hooks.js
which has the correct hooks.babel.config.js looks like:
Screenshots
Steps To Reproduce
Expected behavior
Hook is available
Actual behavior
Hook isn't found
Snack or minimal code example
Package versions