Hi. You're doing this with the 'projects' option in the Web IDE?
The first thing I think might be an issue is that modules aren't just simple files that are 'included'. You've got to define 'exports'.
For instance:
mymodule.js:
exports.foo = function() { console.log("Hello"); };
main.js:
var mymodule = require("mymodule"); mymodule.foo();
@Gordon started
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.
Hi. You're doing this with the 'projects' option in the Web IDE?
The first thing I think might be an issue is that modules aren't just simple files that are 'included'. You've got to define 'exports'.
For instance:
mymodule.js:
main.js: