ReferenceError: 'myTestFunc' is undefined
Maybe that helps?
Error: Don't know how to load module at x-wmapp0:www/www/www/Scripts/modules/apollo-sys.sjs
So obviously the www/www/www thing seems to be the problem here. When I do a console.log in the middle of that hubs.unshift function, the path is this:
file://x-wmapp0:/app/www/Scripts/CMStratified.sjs
THANK YOU!
Â
Â
Â
Â
Â
var cm = require("www/Scripts/CMStratified.sjs");
What comes through is this:
x-wmapp0:www/www/www/Scripts/CMStratified.sjs
So I have to use the hubs.unshift to clean up that www/www/www, like this:
           require.hubs.unshift(["x-wmapp", {
               src:function(path) {
                   path = path.replace("www/www/www", "www");
                   return { src: sys.request(path),
                       loaded_from: path
                   };
               }
           }]);
And that works!
Any idea where the www/www/www is coming from?
When I call this, I get this error: Don't know how to load module at ms-appx://io.cordova.certifymobile/www/scripts/test.sjs
Alan