In the code above - module 'hello' requires module 'world', which does not seem to work, regardless of where you put 'world' and how you include it (as separate module - under 'modules/world.js', or in a subfolder - like 'modules/hello/world.js').
As already described above, current workaround is to serve modules from a server of your choice:
setup your server to serve static files from the 'modules' folder;
Web IDE > Settings > Communications > Module URL - put URL of the 'modules' folder (e.g. "http://localhost:9080/modules")
__
Am I doing it wrong, or are there plans to enable including local nested modules in the future?
(Web IDE v0.68.6)
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.
Unfortunately, this does not work when a module requires another module, for example:
In the code above - module 'hello' requires module 'world', which does not seem to work, regardless of where you put 'world' and how you include it (as separate module - under 'modules/world.js', or in a subfolder - like 'modules/hello/world.js').
As already described above, current workaround is to serve modules from a server of your choice:
__
Am I doing it wrong, or are there plans to enable including local nested modules in the future?
(Web IDE v0.68.6)