Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raochenghui opened this issue Apr 18, 2024 · 3 comments
Labels
bug report Something isn't working platform: Android Issue related to Android platform

Comments

@raochenghui
Copy link

raochenghui commented Apr 18, 2024

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?
    react-native@0.68.2

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 raochenghui added the bug report Something isn't working label Apr 18, 2024
@raochenghui
Copy link
Author

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

@BartoszKlonowski BartoszKlonowski added the platform: Android Issue related to Android platform label Apr 19, 2024
@BartoszKlonowski BartoszKlonowski added this to To be analyzed in Slider-Board via automation Apr 19, 2024
@mirabo-trunghoang
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something isn't working platform: Android Issue related to Android platform
Projects
Slider-Board
  
To be analyzed
Development

No branches or pull requests

4 participants