Requiring module "node_modules/react-native-reanimated/src/Animated.js", which threw an exception: TypeError: undefined is not an object
Getting such error in node terminal
React-native --0.65 "react-native-reanimated": "^2.3.1", "react-native-gesture-handler": "^2.1.0",
This looks like a cache problem, could you create all cache in your application (yarn start --reset-cache)? But if it doesn't help, would you prepare an example repo to produce your issue?
I got the same error after expo updating, any help?
This looks like a cache problem, could you create all cache in your application (
yarn start --reset-cache)? But if it doesn't help, would you prepare an example repo to produce your issue?
not worked for me.
Really, I want to help, but if anyone won't provide a reproduction I'm not able to fix it :/
Make sure your babel.config.js looks like below
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin'],
};
};
Once that is done the run expo r -c to clear the cache
@MrGautamojha did you find any solution for this? I am also facing the same error.
i have the same issue
@MrGautamojha did you find any solution for this? I am also facing the same error.
Downgrade NPM version fixed this issue for now
"react-native-gesture-handler": "1.10.3", "react-native-reanimated": "1.9.0",
It looks like there is now an expo command to fix the version number issue:
expo doctor --fix-dependencies
Also make sure you clear cache again as suggested above