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.c­om/riccardokhm/Human-Monitoring-Technolo­gies/main/Projects/Bangle%26Puck%20Js/Mo­dules/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