{"action":"opened","issue":{"url":"https://api.github.com/repos/zeit/pkg/issues/315","repository_url":"https://api.github.com/repos/zeit/pkg","labels_url":"https://api.github.com/repos/zeit/pkg/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/zeit/pkg/issues/315/comments","events_url":"https://api.github.com/repos/zeit/pkg/issues/315/events","html_url":"https://github.com/zeit/pkg/issues/315","id":285192934,"number":315,"title":"Error: Cannot find module './'","user":{"login":"erikd","id":307277,"avatar_url":"https://avatars0.githubusercontent.com/u/307277?v=4","gravatar_id":"","url":"https://api.github.com/users/erikd","html_url":"https://github.com/erikd","followers_url":"https://api.github.com/users/erikd/followers","following_url":"https://api.github.com/users/erikd/following{/other_user}","gists_url":"https://api.github.com/users/erikd/gists{/gist_id}","starred_url":"https://api.github.com/users/erikd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikd/subscriptions","organizations_url":"https://api.github.com/users/erikd/orgs","repos_url":"https://api.github.com/users/erikd/repos","events_url":"https://api.github.com/users/erikd/events{/privacy}","received_events_url":"https://api.github.com/users/erikd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-30T09:11:50Z","updated_at":"2017-12-30T09:11:50Z","closed_at":null,"author_association":"NONE","body":"I'm an experienced dev, but really new to node.\r\n\r\nI'm using `pkg` to build an executable, but when run it fails with:\r\n```\r\nError: Cannot find module './'\r\n1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.\r\n    at Function.Module._resolveFilename (module.js:469:15)\r\n    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1269:46)\r\n    at Function.Module._load (module.js:417:25)\r\n    at Module.require (module.js:497:17)\r\n    at Module.require (pkg/prelude/bootstrap.js:1153:31)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (/snapshot/daedalus/node_modules/.bin/electron:0)\r\n    at Module._compile (pkg/prelude/bootstrap.js:1243:22)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32\r\n```\r\nI'm perfectly happy to accept there is something wrong with this code, but it would be nice to have some better debug info."}}
{"actor":{"display_login":"erikd"}}