Collection-FS/GridFS on Windows. Weird Error!


I’m trying to get CollectionFS using a GridFS store working on a windows development setup.

But i’m getting a rather odd error message that suggests some weird load order or scope problem in one of the NPM depended modules of the packages.

I’ve reported the issue here: which includes the error message. Its also below for speed:

W20150726-23:40:17.248(1)? (STDERR) ReferenceError: require is not defined
W20150726-23:40:17.248(1)? (STDERR)     at app\node_modules\gridfs-stream\node_modules\flushwritable\lib\FlushWritable.js:6:20
W20150726-23:40:17.248(1)? (STDERR)     at app\node_modules\gridfs-stream\node_m
=> Exited with code: 8

I thouhgt I would also post here on the offchance someone might see it a bit faster in a forum/asking for help scenario rather than a bug report.

Any ideas?