{"action":"created","issue":{"url":"https://api.github.com/repos/tojocky/node-printer/issues/220","repository_url":"https://api.github.com/repos/tojocky/node-printer","labels_url":"https://api.github.com/repos/tojocky/node-printer/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/tojocky/node-printer/issues/220/comments","events_url":"https://api.github.com/repos/tojocky/node-printer/issues/220/events","html_url":"https://github.com/tojocky/node-printer/issues/220","id":329592360,"node_id":"MDU6SXNzdWUzMjk1OTIzNjA=","number":220,"title":"When printer.js get to the line that requires node_printer.node, I get an expection","user":{"login":"mbates","id":541844,"node_id":"MDQ6VXNlcjU0MTg0NA==","avatar_url":"https://avatars0.githubusercontent.com/u/541844?v=4","gravatar_id":"","url":"https://api.github.com/users/mbates","html_url":"https://github.com/mbates","followers_url":"https://api.github.com/users/mbates/followers","following_url":"https://api.github.com/users/mbates/following{/other_user}","gists_url":"https://api.github.com/users/mbates/gists{/gist_id}","starred_url":"https://api.github.com/users/mbates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbates/subscriptions","organizations_url":"https://api.github.com/users/mbates/orgs","repos_url":"https://api.github.com/users/mbates/repos","events_url":"https://api.github.com/users/mbates/events{/privacy}","received_events_url":"https://api.github.com/users/mbates/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T19:24:39Z","updated_at":"2018-06-06T00:54:38Z","closed_at":null,"author_association":"NONE","body":"Windows 7 x64\r\nelectron 2.0.2\r\nnode 8.11.2\r\n\r\nI installed node_printer with ```npm install printer --runtime=electron --target=2.0.2 --target_arch=x64```\r\n\r\nWhen I require printer/lib in my main process, the printer.js throws an exception as soon as it tries to require the node_printer.node file at ```printer_helper = require(native_lib_path);```\r\n\r\nThe message I get is\r\nUncaught Exception:\r\nError The system cannot find message text for message number 0x%1 in the message file for %2.\r\n\\\\?\\C:\\path\\to\\node_modules\\...\\node_printer.node\r\n  at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)\r\n  at Object.Module._extensions..node (module.js:671:18)\r\n  at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)\r\n  at Module.load (module.js:561:32)\r\n  at tryModuleLoad (module.js:504:12)\r\n  at Function.Module._load (module.js:496:3)\r\n  at Module.require (module.js:586:17)\r\n  at require (internal/modules.js:11:18)\r\n  at Object/,anonymous. (C:\\path\\to\\node_modules\\\\printer\\lib...:18)\r\n  at Object/,anonymous. (C:\\path\\to\\node_modules\\\\printer\\lib...:3)\r\n"},"comment":{"url":"https://api.github.com/repos/tojocky/node-printer/issues/comments/394905927","html_url":"https://github.com/tojocky/node-printer/issues/220#issuecomment-394905927","issue_url":"https://api.github.com/repos/tojocky/node-printer/issues/220","id":394905927,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDkwNTkyNw==","user":{"login":"mbates","id":541844,"node_id":"MDQ6VXNlcjU0MTg0NA==","avatar_url":"https://avatars0.githubusercontent.com/u/541844?v=4","gravatar_id":"","url":"https://api.github.com/users/mbates","html_url":"https://github.com/mbates","followers_url":"https://api.github.com/users/mbates/followers","following_url":"https://api.github.com/users/mbates/following{/other_user}","gists_url":"https://api.github.com/users/mbates/gists{/gist_id}","starred_url":"https://api.github.com/users/mbates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbates/subscriptions","organizations_url":"https://api.github.com/users/mbates/orgs","repos_url":"https://api.github.com/users/mbates/repos","events_url":"https://api.github.com/users/mbates/events{/privacy}","received_events_url":"https://api.github.com/users/mbates/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T00:54:38Z","updated_at":"2018-06-06T00:54:38Z","author_association":"NONE","body":"Some more info. I created a very simple node app, that just installs node-printer and sends some data to a printer using printDirect(). That worked fine.\r\n\r\nI then added electron to the app, and created a simple main.js and renderer.js, then ran ```npm install printer --runtime=electron```\r\nthe simple node app continued to work. But when npm start opens the electron window and the above error is displayed."}}
{"actor":{"display_login":"mbates"}}