{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb/js-bson/issues/122","labels_url":"https://api.github.com/repos/mongodb/js-bson/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/mongodb/js-bson/issues/122/comments","events_url":"https://api.github.com/repos/mongodb/js-bson/issues/122/events","html_url":"https://github.com/mongodb/js-bson/issues/122","id":74321452,"number":122,"title":"Cannot find module '././binary_parser'","user":{"login":"cloppy","id":1573169,"avatar_url":"https://avatars.githubusercontent.com/u/1573169?v=3","gravatar_id":"","url":"https://api.github.com/users/cloppy","html_url":"https://github.com/cloppy","followers_url":"https://api.github.com/users/cloppy/followers","following_url":"https://api.github.com/users/cloppy/following{/other_user}","gists_url":"https://api.github.com/users/cloppy/gists{/gist_id}","starred_url":"https://api.github.com/users/cloppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloppy/subscriptions","organizations_url":"https://api.github.com/users/cloppy/orgs","repos_url":"https://api.github.com/users/cloppy/repos","events_url":"https://api.github.com/users/cloppy/events{/privacy}","received_events_url":"https://api.github.com/users/cloppy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-08T10:49:51Z","updated_at":"2016-01-06T01:36:56Z","closed_at":"2015-10-15T07:17:22Z","body":"I'm trying to use mongoose with nwjs, but constantly get errors.\r\n\r\nLike in `lib/bson/index.js` i.e. line 19, there is a prepending `./`. Why is that? Every module that is required already has a './' as prefix.\r\n\r\n```javascript\r\n[ './binary_parser'\r\n  , './binary'\r\n  , './code'\r\n  , './db_ref'\r\n  , './double'\r\n  , './max_key'\r\n  , './min_key'\r\n  , './objectid'\r\n  , './symbol'\r\n  , './timestamp'\r\n  , './long'].forEach(function (path) {\r\n  \tvar module = require('./' + path);\r\n  \tfor (var i in module) {\r\n  \t\texports[i] = module[i];\r\n    }\r\n});\r\n```\r\n\r\nI am using Webpack and when those modules are required, it alwys states the error:\r\n```\r\nCannot find module '././binary_parser'\r\n```\r\n\r\nSo why is that second `./` needed?"},"comment":{"url":"https://api.github.com/repos/mongodb/js-bson/issues/comments/169191257","html_url":"https://github.com/mongodb/js-bson/issues/122#issuecomment-169191257","issue_url":"https://api.github.com/repos/mongodb/js-bson/issues/122","id":169191257,"user":{"login":"VodkaBears","id":1700334,"avatar_url":"https://avatars.githubusercontent.com/u/1700334?v=3","gravatar_id":"","url":"https://api.github.com/users/VodkaBears","html_url":"https://github.com/VodkaBears","followers_url":"https://api.github.com/users/VodkaBears/followers","following_url":"https://api.github.com/users/VodkaBears/following{/other_user}","gists_url":"https://api.github.com/users/VodkaBears/gists{/gist_id}","starred_url":"https://api.github.com/users/VodkaBears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VodkaBears/subscriptions","organizations_url":"https://api.github.com/users/VodkaBears/orgs","repos_url":"https://api.github.com/users/VodkaBears/repos","events_url":"https://api.github.com/users/VodkaBears/events{/privacy}","received_events_url":"https://api.github.com/users/VodkaBears/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T01:36:56Z","updated_at":"2016-01-06T01:36:56Z","body":"> this should not be a problem anymore\r\n\r\nSeems like the problem is still here. Webpack can't resolve paths in `lib/bson/index.js`.\r\n\r\n```\r\nwebpack: 1.12.9\r\nmongodb: 2.1.3\r\nbson: 0.4.20\r\n```"}}