close

[Solved] Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js”

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing following Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js” in React-native. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How This Error Occurs ?

I am facing following error.

Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js”, which threw an exception: Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated’s babel plugin?

How To Solve Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js” Error ?

  1. How To Solve Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js” Error ?

    To Solve Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js” ErrorYou Just Need to add 'react-native-reanimated/plugin‘ in your babel.config.js file. Just like this: plugins: [ ‘react-native-reanimated/plugin’, ] Now, Your error must be solved.

  2. Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js”

    To Solve Error: Requiring module “node_modules\react-native-reanimated\src\Animated.js” ErrorYou Just Need to add 'react-native-reanimated/plugin‘ in your babel.config.js file. Just like this: plugins: [ ‘react-native-reanimated/plugin’, ] Now, Your error must be solved.

Solution 1: add 'react-native-reanimated/plugin‘ in your babel.config.js

You Just Need to add 'react-native-reanimated/plugin‘ in your babel.config.js file. Just like this.

module.exports = {
      ...
      plugins: [
          ...
          'react-native-reanimated/plugin',
      ],
  };

Now, Your error must be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment