{"action":"created","issue":{"url":"https://api.github.com/repos/tojocky/node-printer/issues/130","repository_url":"https://api.github.com/repos/tojocky/node-printer","labels_url":"https://api.github.com/repos/tojocky/node-printer/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/tojocky/node-printer/issues/130/comments","events_url":"https://api.github.com/repos/tojocky/node-printer/issues/130/events","html_url":"https://github.com/tojocky/node-printer/issues/130","id":155582881,"number":130,"title":"Uncaught Error: Cannot find module \".\"","user":{"login":"boatrite","id":5781611,"avatar_url":"https://avatars.githubusercontent.com/u/5781611?v=3","gravatar_id":"","url":"https://api.github.com/users/boatrite","html_url":"https://github.com/boatrite","followers_url":"https://api.github.com/users/boatrite/followers","following_url":"https://api.github.com/users/boatrite/following{/other_user}","gists_url":"https://api.github.com/users/boatrite/gists{/gist_id}","starred_url":"https://api.github.com/users/boatrite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boatrite/subscriptions","organizations_url":"https://api.github.com/users/boatrite/orgs","repos_url":"https://api.github.com/users/boatrite/repos","events_url":"https://api.github.com/users/boatrite/events{/privacy}","received_events_url":"https://api.github.com/users/boatrite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T19:31:35Z","updated_at":"2016-05-24T06:43:54Z","closed_at":null,"body":"NPM version 2.15.1\r\nNode version 4.4.3\r\nUsing electron 1.1.0\r\nUsing Ubuntu 14.04 (libcups2-dev is installed)\r\n\r\nI get `Uncaught Error: Cannot find module \".\"` when trying to `require(\"printer\")`. The error gets thrown from `printer.js` line 12: `printer_helper = require('./node_printer_'+process.platform+'_'+process.arch+'.node');`\r\n\r\nIf I set a breakpoint there and evaluate that line in the console, I get `Uncaught Error: Cannot find module './node_printer_linux_x64.node'`.\r\n\r\nThe weird thing is, if I set a breakpoint on the `require(\"printer\");` line, in the console, I can do `require(\"printer\");` and it totally works.\r\n\r\nThis may or may not be related, but when I `let printer = require(\"printer\");` in one of my files, Webpack complains saying:\r\n\r\n```\r\nWARNING in ./~/printer/lib/printer.js\r\nCritical dependencies:\r\n10:21-45 the request of a dependency is an expression\r\n @ ./~/printer/lib/printer.js 10:21-45\r\n```\r\n\r\nAppreciate any help. Cheers."},"comment":{"url":"https://api.github.com/repos/tojocky/node-printer/issues/comments/221180339","html_url":"https://github.com/tojocky/node-printer/issues/130#issuecomment-221180339","issue_url":"https://api.github.com/repos/tojocky/node-printer/issues/130","id":221180339,"user":{"login":"tojocky","id":598809,"avatar_url":"https://avatars.githubusercontent.com/u/598809?v=3","gravatar_id":"","url":"https://api.github.com/users/tojocky","html_url":"https://github.com/tojocky","followers_url":"https://api.github.com/users/tojocky/followers","following_url":"https://api.github.com/users/tojocky/following{/other_user}","gists_url":"https://api.github.com/users/tojocky/gists{/gist_id}","starred_url":"https://api.github.com/users/tojocky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tojocky/subscriptions","organizations_url":"https://api.github.com/users/tojocky/orgs","repos_url":"https://api.github.com/users/tojocky/repos","events_url":"https://api.github.com/users/tojocky/events{/privacy}","received_events_url":"https://api.github.com/users/tojocky/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T06:43:54Z","updated_at":"2016-05-24T06:43:54Z","body":"try to build the package."}}
{"actor":{"display_login":"tojocky"}}