Kudo/react-native-v8

react-native-reanimated/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved

gpbaculio opened this issue · 0 comments

I am using "react-native-reanimated": "github:Kudo/react-native-reanimated#support-v8" and RN 0.68.0 without Fabric

I would get this weird error:

Error: While trying to resolve module react-native-reanimated from file /Users/glendonphilippbaculio/Desktop/marketplace-app/index.android.js, the package /Users/glendonphilippbaculio/Desktop/marketplace-app/node_modules/react-native-reanimated/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/glendonphilippbaculio/Desktop/marketplace-app/node_modules/react-native-reanimated/lib/Animated.js. Indeed, none of these files exist:

but if i do imports like this, it's fine:

import Animated from 'react-native-reanimated/src/Animated'

but the problem is other packages also uses it, i have to go to node modules and change 'react-native-reanimated' imports there which is not good thing to do, pls help