I'm getting the following error in my simple example using node-webkit:
Uncaught AssertionError: path must be a string
index.html
//base.js
require(["test"], function(test) {
    test.init();
});
//test.js
define(function(){
   window.c = window.console;
   return {
       init: function(){
           c.log('test.init');
       },
       destroy: function(){
           c.log('test.destroy');
       }
   }
});
                Looks like the new version of RequireJS has a function called: requirejs() in addition to require() to avoid conflicts with node's require().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With