genexu / react-native-pie-chart

Simple pie chart module for your React Native app
MIT License
111 stars 48 forks source link

Error: Unable to resolve module @react-native-community/art #32

Closed dream-topdev closed 2 years ago

dream-topdev commented 2 years ago

After I install react-native-pi-chart via 'yarn add react-native-pie-chart', the developer console shows error as belows.

error: Error: Unable to resolve module @react-native-community/art from D:\working\CovidTracker\node_modules\react-native-pie-chart\dist\Pie.js: @react-native-community/art could not be found within the project or in these directories: node_modules\react-native-pie-chart\node_modules node_modules

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*

Is there any good way to tackle this issue?

gaurav0497 commented 2 years ago

Try npm i @react-native-community/art.

andordavoti commented 2 years ago

Please refer to the documentation in the readme for the package: "You need to have react, react-native and @react-native-community/art as your app's dependencies."

aidin36 commented 2 years ago

Thanks guys for helping with answering this. Closing now.