When requiring d3.js before a module that requires mongo (connect-mongo) I get the following error:
TypeError: Cannot read property 'BSON' of undefined
at .../node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/index.js:48:44
If I require d3.js after the mongo module it works fine...
I'm not the first to run into this issue, but I can't figure out whats conflicting How to use D3 in Node.js properly?