•    setWatch(function() { //BTN5
        if (timer) clearInterval(timer);
        timer = undefined;
        Bangle.setGPSPower(0);
        drawMoon(offsetMoon, x, y); //offset, x, y
      }, BTN5, {edge:"rising", debounce:50, repeat:true});
    }
        
    start(); 
    =====================================================
    ERROR: App moonphase's moonphase.app.js is a JS file but isn't valid JS
    $ 
    
  • Do you have a link to the repository where this happens? Usually it's caused by a syntax error or something that means that the JS can't be parsed.

    It works for me - is it possible you needed to do npm install first to install the JS parser?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

ran bin/sanitycheck.js and got App moonphase's moonphase.app.js is a JS file but isn't valid JS

Posted by Avatar for HughB @HughB

Actions