flexn-io / renative

🚀🚀🚀 Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.79k stars 180 forks source link

[androidtv, firetv] fails to run app-harness #1536

Closed GabrieleKaceviciute closed 3 weeks ago

GabrieleKaceviciute commented 4 months ago

Describe the bug Cant' run app-harness on androidtv and firetv (tested on release/1.0 branch)

To Reproduce

  1. Do npx rnv run -p androidtv on app-harness package -> observe

Expected behavior App launches on simulator and no errors

Screenshots or copy&paste

┌─────────────────────────────────────────────────────────────────┐
│ ✔ BUNDLER STARTED | 5/2/2024, 9:37:42 AM | rnv@1.0.0-rc.17      │
│ $ npx rnv run -p firetv                                         │
├─────────────────────────────────────────────────────────────────┤
│ Project: @rnv/app-harness@1.0.0-rc.17                           │
│ Workspace: rnv                                                  │
│ Platform (-p): firetv                                           │
│ Engine: engine-rn-tvos                                          │
│ Template: @rnv/template-starter                                 │
│ App Config (-c): harness                                        │
│ Build Scheme (-s): debug                                        │
│ Target (-t): Television_1080p_API_31                            │
│ Supported Platforms: ios, android, androidtv, firetv, androidwear, web, tizen, tvos, webos, macos, tizenwatch, kaios, chromecast, linux
│ Env Info: darwin | arm64 | node v18.19.0                        │
│ Executed Time: 0h:0m:36s:930ms                                  │
│ info: ✔ Found active emulator! emulator-5554. Will use it
│ Project location: ./platformBuilds/harness_firetv               │
└─────────────────────────────────────────────────────────────────┘
 BUNDLE  ./index.js

 LOG  Running "RNVApp" with {"rootTag":11}
 ERROR  Invariant Violation: requireNativeComponent: "RCTScrollViewTV" was not found in the UIManager.

This error is located at:
    in RCTScrollViewTV (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by AppContent)
    in RCTView (created by View)
    in View (created by AppContent)
    in RCTView (created by View)
    in View (created by AppContent)
    in AppContent (created by App)
    in LoggerProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in App
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in RNVApp(RootComponent), js engine: hermes
 ERROR  Invariant Violation: requireNativeComponent: "RCTScrollViewTV" was not found in the UIManager.

This error is located at:
    in RCTScrollViewTV (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by AppContent)
    in RCTView (created by View)
    in View (created by AppContent)
    in AppContent (created by App)
    in LoggerProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in App
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in RNVApp(RootComponent), js engine: hermes
 ERROR  Invariant Violation: requireNativeComponent: "RCTScrollViewTV" was not found in the UIManager.

This error is located at:
    in RCTScrollViewTV (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by AppContent)
    in RCTView (created by View)
    in View (created by AppContent)
    in RCTView (created by View)
    in View (created by AppContent)
    in AppContent (created by App)
    in LoggerProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in App
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in RNVApp(RootComponent), js engine: hermes
 ERROR  Invariant Violation: requireNativeComponent: "RCTScrollViewTV" was not found in the UIManager.

This error is located at:
    in RCTScrollViewTV (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by LogBoxInspectorBody)
    in LogBoxInspectorBody (created by LogBoxInspector)
    in RCTView (created by View)
    in View (created by LogBoxInspector)
    in LogBoxInspector (created by _LogBoxInspectorContainer)
    in RCTView (created by View)
    in View (created by _LogBoxInspectorContainer)
    in _LogBoxInspectorContainer (created by LogBoxStateSubscription)
    in LogBoxStateSubscription
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in LogBox(RootComponent), js engine: hermes
 ERROR  Invariant Violation: An error was thrown when attempting to render log messages via LogBox.

requireNativeComponent: "RCTScrollViewTV" was not found in the UIManager.

This error is located at:
    in RCTScrollViewTV (created by ScrollView)
    in ScrollView (created by ScrollView)
    in ScrollView (created by LogBoxInspectorBody)
    in LogBoxInspectorBody (created by LogBoxInspector)
    in RCTView (created by View)
    in View (created by LogBoxInspector)
    in LogBoxInspector (created by _LogBoxInspectorContainer)
    in RCTView (created by View)
    in View (created by _LogBoxInspectorContainer)
    in _LogBoxInspectorContainer (created by LogBoxStateSubscription)
    in LogBoxStateSubscription
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in LogBox(RootComponent), js engine: hermes

Desktop (please complete the following information):

pauliusguzas commented 3 months ago

works on rc.19