pybble icon indicating copy to clipboard operation
pybble copied to clipboard

UI.Card() returns ReferenceError: Symbol is not defined

Open clach04 opened this issue 1 year ago • 2 comments

When running compiled app in local SDK 4.3 emulator and attempting to create a Card from UI get:

ReferenceError: Symbol is not defined
    at dict (app.js:1862:36)
    at Object.Card (app.js:2399:20)
    at app.js:2628:17
    at console_card_platform_hello (app.js:2644:5)
    at Object.loader (app.js:2647:1)
    at Object.loader.require (loader.js:44:10)
    at require (loader.js:41:48)
    at Pebble.<anonymous> (main.js:41:3)
  • The issue occurs where Symbol.interator is used (an ES6 feature? definitely from 2013 spec). Looks like pypkjs, Python implementation of PebbleKit JS. which includes PyV8 is likely an older js engine version
  • Does NOT occur on Android phone, Pebble app appears to have a later JS implementation?

No real workaround (as Transcrypt 3.6.x appear to require this). As CloudPebble.net is no longer available unclear how that worked. Not looked in to self-hosted (or alternatives cloud pebble instances).

Seen with:

  • Transcrypt 3.5.213 - 2016-08-19 about the time of this project
  • Transcrypt 3.5.217 released 2016-08-26

clach04 avatar Aug 14 '22 01:08 clach04