Hello
Iam having problems to use Box2d on the server... The fact is that when I require the module or box2d file, the server throws a fatal Error...
I have the classic library in a file named "box2d.js" which is exported in the end
module.exports = Box2D
And in my server I have tried to call it through two ways... Calling the module and requiring the file
var Box2D = require('./box2d.js');
var Box2D = require('./Box2D');
But none of these two options worked, when I run the server, I get this...
module.js:341
throw err;^Error: Cannot find module './box2d.'at Function.Module._resolveFilename (module.js:339:15)at Function.Module._load (module.js:290:25)at Module.require (module.js:367:17)at require (internal/module.js:16:19)at Object.<anonymous> (E:\project\index.js:61:13)at Module._compile (module.js:413:34)at Object.Module._extensions..js (module.js:422:10)at Module.load (module.js:357:32)at Function.Module._load (module.js:314:12)at Function.Module.runMain (module.js:447:10)
I have tried to run it in 4 o 5 projects on github, in all of them the same error... I have already tried with different files too, but the projects don't work neither... I'm using Nodejs 5.1... Any idea about what's happening or how to fix it?
Thanks very much!!!