react-native-slider icon indicating copy to clipboard operation
react-native-slider copied to clipboard

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

Open raochenghui opened this issue 10 months ago • 5 comments

Environment

Android image

  • 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:

image

raochenghui avatar Apr 18 '24 02:04 raochenghui

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

raochenghui avatar Apr 18 '24 02:04 raochenghui

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

mirabo-trunghoang avatar Apr 25 '24 16:04 mirabo-trunghoang

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

SatyamReactNative avatar May 02 '24 06:05 SatyamReactNative

still same error

FrancRodrix avatar Jul 16 '24 05:07 FrancRodrix

@FrancRodrix could you provide your react-native info output and some more details about the error ?

draggie avatar Aug 26 '24 08:08 draggie