Carlos Pungu
Carlos Pungu

Reputation: 21

React native framework , I have some problem with my app ,when I try to execute Npm start , help me please

./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

Answers (3)

Jagroop
Jagroop

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

Matheus Aguiar
Matheus Aguiar

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

Kritarth Sharma
Kritarth Sharma

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

Related Questions