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!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You could maybe try pointing it at the raw file. This works for me:
(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.