flexn-io / create

Build apps for web, TVs, desktops, consoles, wearables and more. Developer friendly UI library targeting all form factors platforms. Another notable feature is providing focus management for TVs which very easy to implement using Create.
https://create.flexn.org
MIT License
26 stars 6 forks source link

[iOS, tvOS, macOS, Android, AndroidTV] Error running Harness: TypeError: Super expression must either be null or a function #48

Closed pauliusguzas closed 1 year ago

pauliusguzas commented 1 year ago

0.17.0-alpha.10 (current main)

How to repro: Do npx rnv run -p <platform> -> error

┌──────────────────────────────────────────────────────────────────────────────┐
│  🚀  BUNDLER STARTED | 9/20/2022, 4:47:49 PM                                 │
│  $ rnv run -p macos                                                          │
├──────────────────────────────────────────────────────────────────────────────┤
│  ReNative Version: 0.36.0-canary.13                                          │
│  Project Name ($package.name): app-harness                                   │
│  Project Version ($package.version): 0.17.0-alpha.10                         │
│  Workspace ($.workspaceID): flexn                                            │
│  Platform (-p): macos                                                        │
│  Engine ($.platforms.macos.engine): engine-rn                                │
│  Template: @flexn/template@0.17.0-alpha.10                                   │
│  App Config (-c): harness                                                    │
│  Build Scheme (-s): debug                                                    │
│  Supported Platforms: macos                                                  │
│  Env Info: darwin | x64 | node v16.14.2                                      │
│  Executed Time: 0h:3m:3s:362ms                                               │
│                                                                              │
│ [ success ] [run] Your Build is located in ./platformBuilds/harness_macos/build/RNVApp .
│                                                                              │
│  Project location:                                                           │
│  ./platformBuilds/harness_macos/RNVApp.xcworkspace                           │
└──────────────────────────────────────────────────────────────────────────────┘
 BUNDLE  ./index.js

 WARN  console.disableYellowBox has been deprecated and will be removed in a future release. Please use LogBox.ignoreAllLogs(value) instead.
 ERROR  TypeError: Super expression must either be null or a function
 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.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
 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.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

Expected: Apps run

aurimasmi commented 1 year ago

Harness App so far does not support macos

pauliusguzas commented 1 year ago

Checked on current main ios, tvos, android, androidtv and they work