callstack / react-native-slider

React Native component exposing Slider from iOS and SeekBar from Android
MIT License
1.16k stars 263 forks source link

Unable to resolve module react-native/Libraries/NativeComponent/ViewConfigIgnore #596

Open raochenghui opened 2 months ago

raochenghui commented 2 months ago

Environment

Android image

Description

Error: Unable to resolve module react-native/Libraries/NativeComponent/ViewConfigIgnore from D:\project\APP\huangdao\hd_zhdd_app\node_modules\@react-native-community\slider\dist\RNCSliderNativeComponent.js: react-native/Libraries/NativeComponent/ViewConfigIgnore could not be found within the project or in these directories:

image

raochenghui commented 2 months ago

react-native version 0.68.2 does not have this ViewConfigIgnore.js file image

I switched the @react-native community/slider library to 4.5.0 to fix it

mirabo-trunghoang commented 2 months ago

It is the same error when I tried to install with iOS, Xcode build log:

Error: Unable to resolve module react-native/Libraries/NativeComponent/ViewConfigIgnore from /Path/to/my/project/node_modules/@react-native-community/slider/dist/RNCSliderNativeComponent.js: react-native/Libraries/NativeComponent/ViewConfigIgnore could not be found within the project or in these directories:
  node_modules

package version: 4.5.2 MacOS 14.4 npm version 6.14.18 Xcode 15.0

SatyamReactNative commented 2 months ago

react-native version 0.68.2 does not have this ViewConfigIgnore.js file image

I switched the @react-native community/slider library to 4.5.0 to fix it

This is working. I changed from ^4.5.0 to 4.5.0 and now it it working. Thank you @raochenghui