Reputation: 21
./node_modules/react-native-reanimated/lib/index.js 4:9 Module parse failed: Unexpected token (4:9) File was processed with these loaders:
Upvotes: 2
Views: 3465
Reputation: 2064
You can install the npm package. If you already installed it, please try to install it again.
npm install react-native-reanimated
Upvotes: 5
Reputation: 21
Installation
npx expo install react-native-reanimated
after the installation completes, you must also add the Babel plugin to babel.config.js:
plugins: ['react-native-reanimated/plugin'],
Upvotes: 2
Reputation: 432
Are you sure that you added Reanimated plugin to babel.config.js?
plugins: ['react-native-reanimated/plugin']
more info: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation#babel-plugin
Upvotes: 6