You are reading a single comment by @Riccardokhm and its replies. Click here to read the full conversation.
  • You could maybe try pointing it at the raw file. This works for me:

    var happy = require("https://raw.githubusercontent.com/riccardokhm/Human-Monitoring-Technologies/main/Projects/Bangle%26Puck%20Js/Modules/Icons.js");
    console.log(happy._happyIcon);
    

    (click the Raw button on the normal GitHub page)

    Maybe the IDE didn't like the space/etc in the module name so it wasn't managing to detect the URL properly...

    The other thing you can do is just write the file into the Bangle's Storage with the IDE, and then you can require it direct.

  • Thanks Gordon for your reply, always a prompt one! I'll try what you suggested! I uploaded to the local storage but when I try to retrieve the module I am not able to. I'll check again!

About

Avatar for Riccardokhm @Riccardokhm started