torgeadelin / react-native-animated-nav-tab-bar

A simple and customisable React Native component that implements an animated bottom tab bar for React Navigation.
MIT License
889 stars 102 forks source link

error: Error: While trying to resolve module `react-native-animated-nav-tab-bar` from file #110

Closed Batsirai-sudo closed 2 years ago

Batsirai-sudo commented 2 years ago

error: Error: While trying to resolve module react-native-animated-nav-tab-bar from file /Users/mac/{**My path to index**}/index.tsx, the package /Users/mac/{**My path to node_modules**}/node_modules/react-native-animated-nav-tab-bar/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/mac/{**My path to node_modules**}/node_modules/react-native-animated-nav-tab-bar/dist/lib/index.js. Indeed, none of these files exist:

ShubhamJain0 commented 2 years ago

Are you using react-navigation v6 too?

BloodDSHOT commented 2 years ago

I'm also getting same error, "react-navigation": "^4.3.7"

hpelitebook745G2 commented 2 years ago

i think there's really a dependency issue with this lib, a react navigation developer had something to say it here

milos201 commented 2 years ago

That's because when the module is installed, ./node_modules/react-native-animated-nav-tab-bar/ only has three files: package.json, LICENSE and README.md.

torgeadelin commented 2 years ago

This issue has been fixed in 3.1.7, please upgrade :)