Custom module implementation #5411
Replies: 1 comment
-
Posted at 2022-11-30 by @gfwilliams 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. Posted at 2022-11-30 by Riccardokhm 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! Posted at 2022-11-30 by @gfwilliams Just to add that if you write Posted at 2022-11-30 by Riccardokhm I just uploaded the Icon.js to my bangle storage through the web Ide but on calling require("Icons.js") no module is found. Any suggestion? Attachments: Posted at 2022-11-30 by @gfwilliams As I said above:
but it's probably still fine |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-11-30 by Riccardokhm
Hi guys,
I'm encountering problems in implementing my own custom module for the Bangle js 2. I have a public Github repo where I am uploading my code, but the web Ide continues on saying that my modules do not exist. Here my example code.
Moreover, I have no possibility from my Web Ide of loading the module from a local folder:any suggestion?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions