언어 설정

Menu
Sites
Language
Web app development issues with React and Webpack (Tizen TV OS 2.4)

I would like to know if there is someone who has been able to successfully run React application in Tizen TV with OS 2.4 (Samsung TV PM32F), how you build all the JavaScript assets etc. to Tizen TV compatible and make the development comfortable?

I have been trying to use the simple create-react-app (https://github.com/facebook/create-react-app) React starter template and run the build on the TV by using Tizen IDE (2.4.0_Rev8). However, I get the following error: “static/js/main.061688ca.js (1) :ReferenceError: Can’t find variable: Set”. From the debugger, I can see that the Tv has some resources but looks like something is wrong with the built JavaScript? I have also tried few other React and Webpack starters without any success to run these builds on the TV.

I can successfully run the same .wgt file with the simulator that comes with the sdk without any issues.

I would really appreciate help and feedback.

Regards, MikaelL



 

Edited by: Mikael Linko on 25 6월, 2018

Responses

4 댓글
Armaan-Ul- Islam

This post on Tizen Developers might be off any help:

React.js 를 사용할 수 있나요?

 

I would suggest that, you may post your issue on Samsung TV Forum

http://developer.samsung.com/forum/?topCtgy=06

Developers on the specific domain may share their experiences with you there.

 

Additional Side-Reading:

Developing for TVs with React-TV

react-tv

 

Mikael Linko

I managed to fix my issue. The problem was in my Webpack configurations and by importing "babel-polyfill" in the index.js before any other imports solved the problem with the 'create-react-app' starter project. 

Yura Yura

Can u help me with WebPack and React Js? i cant do it correctly,thanks

Jose Manuel Morales Diaz

Hi Mikael, im trying to debug an app for smart TV sdk 2.3 (J6400) i have tizen studio 3.2 and 1.3 with tv extension 3.0 and 4.0, but when i run in a debug as, web inspector dont show console errors even when i force one.

i hope you can help me.

https://developer.tizen.org/sites/default/files/users/user-57715/captura.png