wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.44k stars 706 forks source link

Upgrading to 6.13.0 from 6.12.0 breaks the build #1953

Open zuhair-naqvi opened 2 years ago

zuhair-naqvi commented 2 years ago

Description

I just upgraded from 6.12.0 to 6.13.0 and getting the following exception from Metro on launch:

ERROR Invariant Violation: Tried to register two views with the same name HighlighterView, js engine: hermes ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.

Related to

Steps to reproduce

  1. Update the package version in package.json to 6.13.0
  2. Run yarn
  3. Run react-native start --reset-cache
  4. Launch App.

Expected behavior

Bundle loads successfully and App launches as usual

Actual behavior

The following error post compilation:

ERROR Invariant Violation: Tried to register two views with the same name HighlighterView, js engine: hermes ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.

More Info

The error goes away when I roll-back to 6.12.0

The project is on React Native 0.66.4 (Non Expo)

Code snippet

Screenshots/Video

Environment

Affected platforms

ealmiladi commented 1 year ago

Have you tried yarn start --reset-cache?

adids1221 commented 1 year ago

Hi, do you know if this issue is still relevant? Can you reproduce it?