I was making new project and I can’t run the android emulator with this error.
It is located at ‘node_modulesreact-native-reanimatedsrcindex.ts’ and this is just the code there:
// tree-shaken side effects
import './reanimated2/js-reanimated/global';
// @ts-ignore backward compatibility with treeshaking
export * from './reanimated1';
export * from './reanimated2';
export * as default from './Animated';
Im not sure what to do, please help. Thank you in advance!
4
Answers
I also search for an answer and this worked for me.
Visit this expo reanimated docs link https://docs.expo.dev/versions/latest/sdk/reanimated/#installation
and I added this in my 'babel.config.js' file
I think the presets depends if you are using expo. Here is the original code given by the docs:
you can see that I used my default preset which is module:metro.
i have the same issue , This version works for me
I ran this command
expo start -c
everything was working fine. After that, I’ve stopped the app withCtrl+c
and run a normalnpm start
and there were no problems with it sinceI’ve been facing this problem for about 12 long hours, and the solution for this problem was simply to
npx expo start -c