• 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();
    
About

Avatar for Gordon @Gordon started