Just to add to this: The IDE scans your code on the right hand side for mentions of require(url) - however it isn't smart enough to dynamically load module URLs that are specified in a variable.
Espruino itself can't easily load modules via require because an HTTP request to get them would take a certain amount of time. Instead, if you want to load the module yourself do something like:
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.
Just to add to this: The IDE scans your code on the right hand side for mentions of
require(url)
- however it isn't smart enough to dynamically load module URLs that are specified in a variable.Espruino itself can't easily load modules via
require
because an HTTP request to get them would take a certain amount of time. Instead, if you want to load the module yourself do something like: