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.82k stars 180 forks source link

[webos] black blank screen on app running from Windows #1490

Closed GabrieleKaceviciute closed 1 month ago

GabrieleKaceviciute commented 7 months ago

Describe the bug App is installed on device but black blank screen is displayed (tested on release/1.0 branch)

To Reproduce

  1. create new project via rnv new
  2. run rnv run -p webos -t <device_name>
➜  webos git:(master) ✗ rnv run -p webos -t webOS_TV_UN74003LB

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝ │
│ ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗   │
│ ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝   │
│ ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗ │
│ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝ │
│ 🚀 v:1.0.0-rc.12 | renative.org | 4/4/2024, 11:37:02 AM         │
│ $ rnv run -p webos -t webOS_TV_UN74003LB                        │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: engine-rn-web (../../tests/renative/packages/engine-rn-web)
task: ○ run (1x)
task: ○ configure (1x)
task: ○ platform configure (1x)
task: ○ project configure (1x)
task: ○ workspace configure (1x)
task: ✔ workspace configure
task: ○ app configure (1x)
info: Current app config: app
task: ✔ app configure
info: ./node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
task: ✔ project configure
info: Current Build Scheme: debug
task: ○ sdk configure (1x)
task: ✔ sdk configure
task: ✔ platform configure
info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/webos. Will be used to generate assets.
task: ✔ configure
info: Your webos devServer at port 8088 is not running. Starting it up for you...
info: Your webos devServerHost 127.0.0.1 at port 8088 is not running. Starting it up for you...
┌─────────────────────────────────────────────────────────────────┐
│ ✔ BUNDLER STARTED | 4/4/2024, 11:37:02 AM | rnv@1.0.0-rc.12     │
│ $ rnv run -p webos -t webOS_TV_UN74003LB                        │
├─────────────────────────────────────────────────────────────────┤
│ Project: webos@0.1.0                                            │
│ Workspace: rnv                                                  │
│ Platform (-p): webos                                            │
│ Engine: engine-rn-web                                           │
│ Template: @rnv/template-starter                                 │
│ App Config (-c): app                                            │
│ Build Scheme (-s): debug                                        │
│ Target (-t): webOS_TV_UN74003LB                                 │
│ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, tizen, webos, chromecast, kaios, androidwear, tizenwatch
│ Env Info: darwin | arm64 | node v18.19.0                        │
│ Executed Time: 0h:0m:0s:340ms                                   │
│ Project location: ./platformBuilds/app_webos                    │
└─────────────────────────────────────────────────────────────────┘
(node:4653) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:4653) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...

Compiled successfully!

You can now view webos in the browser.

  Local:            http://localhost:8088
  On Your Network:  http://192.168.1.159:8088

Note that the development build is not optimized.
To create a production build, use yarn build.

assets by path static/ 3.02 MiB
  asset static/js/bundle.js 2.71 MiB [emitted] (name: main) 1 related asset
  asset static/media/Inter-Light.58a136ec3193fa8a63e5.ttf 303 KiB [emitted] [immutable] [from: appConfigs/base/fonts/Inter-Light.ttf] (auxiliary name: main)
  asset static/media/logo.63d54a55b067ffc3e842.png 12.1 KiB [emitted] [immutable] [from: platformAssets/runtime/logo.png] (auxiliary name: main)
asset index.html 1.87 KiB [emitted]
asset asset-manifest.json 356 bytes [emitted]
runtime modules 28.5 KiB 14 modules
modules by path ./node_modules/ 2.07 MiB 366 modules
modules by path ../../tests/renative/ 275 KiB 86 modules
modules by path ./platformAssets/ 3.19 KiB (javascript) 12.1 KiB (asset)
  javascript modules 3.11 KiB 2 modules
  ./platformAssets/renative.runtime.json 46 bytes [built] [code generated]
  ./platformAssets/runtime/logo.png 42 bytes (javascript) 12.1 KiB (asset) [built] [code generated]
modules by path ./src/ 14.1 KiB
  ./src/entry/index.web.tsx 1.49 KiB [built] [code generated]
  ./src/app/index.tsx 5.55 KiB [built] [code generated]
  ./src/config.tsx 7.01 KiB [built] [code generated]
./index.js 1.01 KiB [built] [code generated]
./package.json 1020 bytes [built] [code generated]
./appConfigs/base/fonts/Inter-Light.ttf 42 bytes (javascript) 303 KiB (asset) [built] [code generated]
webpack 5.90.1 compiled successfully in 4106 ms
No issues found.
✔ Executing: /Users/gabriele/webOS_TV_SDK/CLI/bin/ares-package -o /Users/gabriele/Desktop/rnv_new/webos/platformBuilds/app_webos/output /Users/gabriele/Desktop/rnv_new/webos/platformBuilds/app_webos -n
✔ Executing: /Users/gabriele/webOS_TV_SDK/CLI/bin/ares-device-info -D
✔ Executing: /Users/gabriele/webOS_TV_SDK/CLI/bin/ares-install --device webOS_TV_UN74003LB /Users/gabriele/Desktop/rnv_new/webos/platformBuilds/app_webos/output/com.mycompany.webos_0.1.0_all.ipk
✔ Executing: /Users/gabriele/webOS_TV_SDK/CLI/bin/ares-launch --device webOS_TV_UN74003LB com.mycompany.webos

https://github.com/flexn-io/renative/assets/106537292/bca2202c-b71a-4327-95f9-0f5cff862c54

Expected behavior App runs and ui is displayed

Desktop (please complete the following information):

pauliusguzas commented 3 months ago

1.0.0-rc.21 update: only repro on windows, both new project, and monorepo