Web App Development Issues with React and Webpack on Tizen TV OS 2.4

Original Created Jun 25, 2018 | Regeneration Apr 22, 2026

I'm trying to run a React application on Tizen TV OS 2.4 (Samsung TV PM32F) but encountering issues with JavaScript compatibility. Specifically, I'm using the create-react-app starter template and building with Tizen IDE (2.4.0_Rev8), but getting the error: "static/js/main.061688ca.js (1) :ReferenceError: Can't find variable: Set".

The same .wgt file works fine in the SDK simulator, but fails on the actual TV. I've tried multiple React and Webpack starters without success. How can I properly build JavaScript assets for Tizen TV compatibility and streamline the development process?

Problem Understanding

The core issue stems from JavaScript compatibility problems between modern React applications and the older JavaScript engine in Tizen TV OS 2.4. The error indicates missing ES6 features (like Set) that aren't supported in this version.

Solution Methods

  1. Polyfill Solution:

    • Install babel-polyfill: npm install --save babel-polyfill
    • Import it at the very beginning of your index.js:
      import 'babel-polyfill';
      // Other imports follow
      
  2. Webpack Configuration:

    • Modify your webpack.config.js to include proper polyfills:
      module.exports = {
        entry: ['babel-polyfill', './src/index.js'],
        // Rest of your configuration
      }
      
  3. React-TV Alternative:

Additional Tips

  • For Tizen TV-specific development, refer to Samsung's developer resources at https://developer.samsung.com/tizen
  • When debugging, ensure you're using the correct Web Inspector version that matches your TV's OS
  • Test frequently on actual hardware as simulator behavior may differ

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.