title: Error: While trying to resolve module `react-native-reanimated`
body: <p>Can't add reanimated package on react-native project, I am getting this error when i ran the app:</p>
  <blockquote>
  <p>Error: While trying to resolve module <code>react-native-reanimated</code> from
  file
  <code>/Users/.../app/index.android.js</code>,
  the package
  <code>/Users/...p/node_modules/react-native-reanimated/package.json</code>
  was successfully found. However, this package itself specifies a
  <code>main</code> module field that could not be resolved
  (<code>/Users/.../node_modules/react-native-reanimated/lib/Animated.js</code>.
  Indeed, none of these files exist:</p>
  </blockquote>
  <p>I am thinking of using babel-plugin-module-resolver to alias it and this is my babel.config.js but i am not sure if it will resolve 'react-native-reanimated' from other packages dependent to it:</p>
  <pre><code>module.exports = {
    env: {
      production: {
        plugins: ['transform-remove-console', 'react-native-reanimated/plugin'],
      },
    },
    presets: ['module:metro-react-native-babel-preset'],
    plugins: [
      [
        require.resolve('babel-plugin-module-resolver'),
        {
          root: ['.'],
          extensions: ['.android.js', '.ts', '.tsx', '.jsx', '.js'],
          alias: {
            'react-native-reanimated': 'react-native-reanimated/src/Animated',
          },
        },
      ],
      'react-native-reanimated/plugin',
    ],
  };
  </code></pre>
  <p>but same error, help?</p>