Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gpbaculio opened this issue Apr 11, 2022 · 0 comments

Comments

@gpbaculio
Copy link

gpbaculio commented Apr 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant