Languages

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 Jun, 2018

Responses

2 Replies
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.