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 181 forks source link

RNV LG WebOS unable to deploy into TVs. #294

Closed RicardasSimcikas closed 3 years ago

RicardasSimcikas commented 4 years ago

Describe the bug 'rnv run -p webos -d' - unable to deploy into TVs.

Screenshots or copy&paste

Windows

Module not found: Error: Can't resolve '../..projectConfigonts/AntDesign.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 3:36-86
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/Entypo.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 6:36-83
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/EvilIcons.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 9:36-86
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/Feather.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 12:36-84
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/FontAwesome.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 15:36-88
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/Foundation.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 18:36-87
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/Ionicons.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 21:36-85
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/MaterialCommunityIcons.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 24:36-99
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/MaterialIcons.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 27:36-90
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/Octicons.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 30:36-85
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/TimeBurner.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 33:36-87
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js
ERROR in ./platformAssets/runtime/fonts.js
Module not found: Error: Can't resolve '../..projectConfigonts/Zocial.ttf' in 'C:\Users\ricsim\Desktop\test\platformAssets\runtime'
 @ ./platformAssets/runtime/fonts.js 36:36-83
 @ ./platformAssets/runtime/fontManager.web.js
 @ ./src/app.js
 @ ./index.webos.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js

Linux

/home/testlab/webOS_TV_SDK/CLI/bin/ares-package -o /home/testlab/Desktop/testRnv/platformBuilds/helloWorld_webos/output /home/testlab/Desktop/testRnv/platformBuilds/helloWorld_webos/public -n 

FAILED with ERROR: 

ares-package ERR! *** ares-package: Error: 'largeIcon.png'' does not exist. please check the file path. 

Change largeicon to largeIcon in folder appConfig/base/assets/webos 

Mac No errors in terminal but doesn't install into LG TV.

ℹ 「wds」: Project is running at http://0.0.0.0:8083/
ℹ 「wds」: webpack output is served from /assets/
ℹ 「wds」: Content not from webpack is served from /Users/ricardassimcikas/Desktop/testRnv/platformBuilds/helloWorld_webos/public
ℹ 「wds」: 404s will fallback to /index.html
ℹ 「wdm」: Hash: d7112eddbe48dc03e06b
Version: webpack 4.20.2
Time: 10320ms
Built at: 10/03/2019 9:08:39 AM
                               Asset       Size    Chunks             Chunk Names
a37b0c01c0baf1888ca812cc0508f6e2.ttf    125 KiB            [emitted]
6165c9d7a2e729ba57b23dd93add5366.png   1.58 KiB            [emitted]
63325a32824c1cf1b4a08661d9cee14d.png    113 KiB            [emitted]
3a2ba31570920eeb9b1d217cabe58315.ttf   68.7 KiB            [emitted]
744ce60078c17d86006dd0edabcd59a7.ttf     64 KiB            [emitted]
140c53a7643ea949007aa9a282153849.ttf   13.1 KiB            [emitted]
6beba7e6834963f7f171d3bdd075c915.ttf   63.6 KiB            [emitted]
b06871f281fee6b241d60582ae9369b9.ttf    162 KiB            [emitted]
e20945d7c929279ef7a6f1db184a4470.ttf   55.6 KiB            [emitted]
b2e0fc821c6886fb3940f85a3320003e.ttf    110 KiB            [emitted]
d15c1216957060fac577af6151fb8cfe.ttf    407 KiB            [emitted]
7d40544b395c5949f4646f5e150fe020.png  290 bytes            [emitted]
73b8cff012825060b308d2162f31dbb2.ttf   26.8 KiB            [emitted]
53c45bc3d1786fd79f705b667a74fec5.ttf   61.3 KiB            [emitted]
5cdf883b18a5651a29a4d1ef276d2457.ttf     25 KiB            [emitted]
                           bundle.js   3.93 MiB    bundle  [emitted]  bundle
                            fetch.js    377 KiB     fetch  [emitted]  fetch
                         polyfill.js    799 KiB  polyfill  [emitted]  polyfill
                       bundle.js.map   3.81 MiB    bundle  [emitted]  bundle
                        fetch.js.map    421 KiB     fetch  [emitted]  fetch
                     polyfill.js.map    752 KiB  polyfill  [emitted]  polyfill
                       ../index.html  705 bytes            [emitted]
Entrypoint fetch = fetch.js fetch.js.map
Entrypoint polyfill = polyfill.js polyfill.js.map
Entrypoint bundle = bundle.js bundle.js.map
[./index.webos.js] 668 bytes {bundle} [built]
[./node_modules/babel-polyfill/lib/index.js] 833 bytes {polyfill} [built]
[./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {fetch} {polyfill} {bundle} [built]
[./node_modules/querystring-es3/index.js] 127 bytes {fetch} {polyfill} {bundle} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {bundle} [built]
[./node_modules/react/index.js] 190 bytes {bundle} [built]
[0] multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js whatwg-fetch 52 bytes {fetch} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {fetch} {polyfill} {bundle} [built]
[1] multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js babel-polyfill 52 bytes {polyfill} [built]
[2] multi (webpack)-dev-server/client?http://0.0.0.0:8083 (webpack)/hot/dev-server.js ./index.webos.js 52 bytes {bundle} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8083] (webpack)-dev-server/client?http://0.0.0.0:8083 8.1 KiB {fetch} {polyfill} {bundle} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 KiB {fetch} {polyfill} {bundle} [built]
[./node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1.11 KiB {fetch} {polyfill} {bundle} [built]
[./node_modules/whatwg-fetch/fetch.js] 13 KiB {fetch} [built]
[./src/utils/focus.js] 1.59 KiB {bundle} [built]
    + 1086 hidden modules
Child html-webpack-plugin for "../index.html":
     1 asset
    Entrypoint undefined = ../index.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./platformBuilds/_shared/template.js] 2.22 KiB {0} [built]
ℹ 「wdm」: Compiled successfully.

Desktop (please complete the following information):

rrymm commented 4 years ago

File exists, but there is a typo in file name in original auto created template -> largeicon.png simple change to largeIcon.png'' and that’s it.

RicardasSimcikas commented 4 years ago

@rrymm it solved the problem for linux , but on mac you can only install manually, 'rnv run -p webos -d' does not seem to work. On windows I'm still unable to install manually or through terminal.

mihaiblaga89 commented 4 years ago

I'm on it, when I first tested this I couldn't replicate the issue at all. Now I know that it's because the Apple's default file system is case insensitive. Will switch to Windows for this and I'll have a fix today

mihaiblaga89 commented 4 years ago

@rrymm @RicardasSimcikas please test release rnv@0.27.6-alpha.1. Should fix the image and fonts issue on windows

RicardasSimcikas commented 4 years ago

@mihaiblaga89 Works with linux. Windows - installing manually or through terminal you can only see blank screen. Image from iOS mac - does not install into TV through terminal.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

turbidwater commented 4 years ago

@RicardasSimcikas I ran into this same issue, but on v0.28.21. The issue is that the slashes are the wrong way in platformAssets/runtime/fonts.js. I did a Replace on \ to / and the app started deploying after that. @mihaiblaga89 I ran into this when building for Tizen TV rather than WebOS.

mihaiblaga89 commented 4 years ago

@turbidwater will investigate

turbidwater commented 4 years ago

@mihaiblaga89 Thanks! FWIW, I am running into this in git bash on windows. It seems to happen again each time I use the run command fresh, but not on the live reloading.

mihaiblaga89 commented 4 years ago

yes, because rnv overwrites that file on start

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.