react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

Upgrading to 6.13.0 from 6.12.0 breaks the build

Open zuhair-naqvi opened this issue 3 years ago • 2 comments

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

  • [x] Components
  • [ ] Demo
  • [ ] Docs
  • [ ] Typings

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

  • React Native:
  • React Native UI Lib:

Affected platforms

  • [ X ] Android
  • [ ] iOS
  • [ ] Web

zuhair-naqvi avatar Apr 09 '22 04:04 zuhair-naqvi

Have you tried yarn start --reset-cache?

ealmiladi avatar Jan 23 '23 17:01 ealmiladi

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

adids1221 avatar Jul 24 '23 13:07 adids1221