react-native-slider
react-native-slider copied to clipboard
Unable to resolve module react-native/Libraries/NativeComponent/ViewConfigIgnore
Environment
Android
- react-native info output:
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 AMD Ryzen 7 5800U with Radeon Graphics
Memory: 1.04 GB / 14.83 GB
Binaries:
Node: 20.12.0 -
Yarn: 1.22.22 -
npm: 10.5.0 -
Watchman: 20240310.093207.0 - C:\ProgramData\chocolatey\bin\watchman.EXE
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions: 10.0.22000.0
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 17.0.10
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
-
are you using the new architecture?
-
which version of react & react-native are you using? [email protected]
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:
react-native version 0.68.2 does not have this ViewConfigIgnore.js
file
I switched the @react-native community/slider library to 4.5.0 to fix it
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
react-native version 0.68.2 does not have this
ViewConfigIgnore.js
fileI 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
still same error
@FrancRodrix could you provide your react-native info
output and some more details about the error ?