{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/844","repository_url":"https://api.github.com/repos/electron-userland/electron-packager","labels_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/844/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/844/comments","events_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/844/events","html_url":"https://github.com/electron-userland/electron-packager/issues/844","id":323175654,"number":844,"title":"Packaged app with native module fails to start due to not rebuilding","user":{"login":"tzvetelin-vassilev","id":13750595,"avatar_url":"https://avatars3.githubusercontent.com/u/13750595?v=4","gravatar_id":"","url":"https://api.github.com/users/tzvetelin-vassilev","html_url":"https://github.com/tzvetelin-vassilev","followers_url":"https://api.github.com/users/tzvetelin-vassilev/followers","following_url":"https://api.github.com/users/tzvetelin-vassilev/following{/other_user}","gists_url":"https://api.github.com/users/tzvetelin-vassilev/gists{/gist_id}","starred_url":"https://api.github.com/users/tzvetelin-vassilev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzvetelin-vassilev/subscriptions","organizations_url":"https://api.github.com/users/tzvetelin-vassilev/orgs","repos_url":"https://api.github.com/users/tzvetelin-vassilev/repos","events_url":"https://api.github.com/users/tzvetelin-vassilev/events{/privacy}","received_events_url":"https://api.github.com/users/tzvetelin-vassilev/received_events","type":"User","site_admin":false},"labels":[{"id":190730268,"url":"https://api.github.com/repos/electron-userland/electron-packager/labels/question%20:question:","name":"question :question:","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-05-15T11:25:15Z","updated_at":"2018-05-29T15:28:44Z","closed_at":"2018-05-16T20:56:18Z","author_association":"NONE","body":"With latest versions app fails to start because missing node modules.\r\n\r\nDEBUG=electron-packager\r\nelectron-packager . --asar\r\nPackaging app for platform darwin x64 using electron v2.0.0\r\nWrote new app to /Users/vassilev/Projects/inkspace/Wacom Inkspace App-darwin-x64\r\n\r\nPackage is created successfully but when app is started there is exception. This exception is available only after packaging. I have added 'ansi-regex' in dependencies, but then 'code-point-at' is missing and so on for may be 7-8 modules more. Package with 11.2.0 do not have problems and missing packages. I'm using lates npm and electron. if you need my package.json I can include it.\r\n\r\nmodule.js:485 Uncaught Error: Cannot find module 'ansi-regex'\r\n    at Module._resolveFilename (module.js:485)\r\n    at Function.Module._resolveFilename (/Applications/Wacom Inkspace App.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35)\r\n    at Function.Module._load (module.js:437)\r\n    at Module.require (module.js:513)\r\n    at require (internal/module.js:11)\r\n    at Object.<anonymous> (/Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/strip-ansi/index.js:2)\r\n    at Object.<anonymous> (/Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/strip-ansi/index.js:8)\r\n    at Module._compile (module.js:569)\r\n    at Object.Module._extensions..js (module.js:580)\r\n    at Module.load (module.js:503)\r\nModule._resolveFilename @ module.js:485\r\nModule._resolveFilename @ /Applications/Wacom Inkspace App.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35\r\nModule._load @ module.js:437\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/strip-ansi/index.js:2\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/strip-ansi/index.js:8\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/string-width/index.js:2\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/string-width/index.js:39\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/wide-align/align.js:2\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/wide-align/align.js:67\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/gauge/render-template…:2\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/gauge/render-template…:183\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/gauge/plumbing.js:3\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/gauge/plumbing.js:50\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/gauge/index.js:2\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/gauge/index.js:235\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/npmlog/log.js:3\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/npmlog/log.js:311\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/node-pre-gyp/lib/node…:15\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/node-pre-gyp/lib/node…:196\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/usb/usb.js:1\r\n(anonymous) @ /Applications/Wacom Inkspace App.app/Contents/Resources/app.asar/node_modules/usb/usb.js:408\r\nModule._compile @ module.js:569\r\nModule._extensions..js @ module.js:580\r\nModule.load @ module.js:503\r\ntryModuleLoad @ module.js:466\r\nModule._load @ module.js:458\r\nModule.require @ module.js:513\r\nrequire @ internal/module.js:11\r\n(anonymous) @ bufferPsdWriter.ts:3\r\n__webpack_require__ @ manifest.js:55\r\n(anonymous) @ bufferPsdWriter.ts:3\r\n__webpack_require__ @ manifest.js:55\r\nmodule.exports.Object.defineProperty.value @ bufferPsdWriter.ts:3\r\n__webpack_require__ @ manifest.js:55\r\nwebpackJsonpCallback @ manifest.js:26\r\n(anonymous) @ main.js:2\r\n"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/comments/392820335","html_url":"https://github.com/electron-userland/electron-packager/issues/844#issuecomment-392820335","issue_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/844","id":392820335,"user":{"login":"malept","id":11417,"avatar_url":"https://avatars1.githubusercontent.com/u/11417?v=4","gravatar_id":"","url":"https://api.github.com/users/malept","html_url":"https://github.com/malept","followers_url":"https://api.github.com/users/malept/followers","following_url":"https://api.github.com/users/malept/following{/other_user}","gists_url":"https://api.github.com/users/malept/gists{/gist_id}","starred_url":"https://api.github.com/users/malept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malept/subscriptions","organizations_url":"https://api.github.com/users/malept/orgs","repos_url":"https://api.github.com/users/malept/repos","events_url":"https://api.github.com/users/malept/events{/privacy}","received_events_url":"https://api.github.com/users/malept/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T15:28:44Z","updated_at":"2018-05-29T15:28:44Z","author_association":"MEMBER","body":"If you insist on not using electron-rebuild (as I did in my example), I would suggest asking in one of the [community forums](https://github.com/electron/electron#community), as there are more people watching those websites who could possibly help you."}}
{"actor":{"display_login":"malept"}}