{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/webpack-plugin/issues/59","repository_url":"https://api.github.com/repos/aurelia/webpack-plugin","labels_url":"https://api.github.com/repos/aurelia/webpack-plugin/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/webpack-plugin/issues/59/comments","events_url":"https://api.github.com/repos/aurelia/webpack-plugin/issues/59/events","html_url":"https://github.com/aurelia/webpack-plugin/issues/59","id":166745638,"number":59,"title":"TypeError: Cannot read property 'aurelia' of null","user":{"login":"Vheissu","id":368330,"avatar_url":"https://avatars.githubusercontent.com/u/368330?v=3","gravatar_id":"","url":"https://api.github.com/users/Vheissu","html_url":"https://github.com/Vheissu","followers_url":"https://api.github.com/users/Vheissu/followers","following_url":"https://api.github.com/users/Vheissu/following{/other_user}","gists_url":"https://api.github.com/users/Vheissu/gists{/gist_id}","starred_url":"https://api.github.com/users/Vheissu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vheissu/subscriptions","organizations_url":"https://api.github.com/users/Vheissu/orgs","repos_url":"https://api.github.com/users/Vheissu/repos","events_url":"https://api.github.com/users/Vheissu/events{/privacy}","received_events_url":"https://api.github.com/users/Vheissu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-21T06:19:56Z","updated_at":"2016-11-18T20:02:22Z","closed_at":"2016-07-26T09:33:14Z","body":"<!--\nBUGS: Please use this template.\n\nSUPPORT REQUESTS/QUESTIONS: If you have a support request or question please\nsubmit them to StackOverflow using the tags aurelia and aurelia-framework\nhttp://stackoverflow.com/questions/tagged/aurelia\nor the Aurelia Gitter https://gitter.im/aurelia/discuss\n\nDurandal Inc. offers paid support agreements. Further information regarding paid support\nmay be obtained by emailing support@durandal.io\n\nFuture support requests submitted here will be closed.\n\nThe HTML comments below are for your reference, and are not displayed\nwhen your issue is submitted, feel free to leave them.\n\nChoose one of the two headings, delete the other.\n-->\n\n**I'm submitting a bug report**\n- **Library Version:**\n  1.0.0-beta.4.0.1\n\n**Please tell us about your environment:**\n- **Operating System:**\n  Windows 10\n- **Node Version:**\n  6.2.0\n  \n  <!--\n  Minimum supported Node version is latest Node 4.x LTS\n  run `node -v`\n  -->\n- **NPM Version:**\n  3.8.9\n  \n  <!--\n  Minimum supported NPM version is 3.x\n  run `npm -v`\n  -->\n- **JSPM OR Webpack AND Version**\n  webpack 2.1.0-beta.18\n  \n  <!--\n  If using JSPM\n  run `jspm -v`\n  If using Webpack\n  run `webpack --help | grep webpack`\n  -->\n- **Browser:**\n  all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView\n- **Language:**\n  TypeScript 2.0.0\n\n**Current behavior:**\n- Install a plugin which specifies its own resources using aurelia > build > resources such as `aurelia-dialog`\n- In `main.ts` attempt to load the plugin `aurelia.use.plugin('aurelia-dialog')`\n- Run `npm run watch`\n\n**The above results in the following output:**\n\n```\nTypeError: Cannot read property 'aurelia' of null\n    at getPackageMainDir (C:\\Sites\\reporting-application\\node_modules\\aurelia-webpack-plugin\\dist\\build-resources.js:293:32)\n    at getRealModulePath (C:\\Sites\\reporting-application\\node_modules\\aurelia-webpack-plugin\\dist\\build-resources.js:326:39)\n    at getRealPathUniversal (C:\\Sites\\reporting-application\\node_modules\\aurelia-webpack-plugin\\dist\\build-resources.js:303:55)\n    at processFromPath (C:\\Sites\\reporting-application\\node_modules\\aurelia-webpack-plugin\\dist\\build-resources.js:357:18)\n    at getResourcesOfPackage (C:\\Sites\\reporting-application\\node_modules\\aurelia-webpack-plugin\\dist\\build-resources.js:489:11)\n    at Object._callee$ (C:\\Sites\\reporting-application\\node_modules\\aurelia-webpack-plugin\\dist\\build-resources.js:74:13)\n    at tryCatch (C:\\Sites\\reporting-application\\node_modules\\regenerator-runtime\\runtime.js:62:40)\n    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\\Sites\\reporting-application\\node_modules\\regenerator-runtime\\runtime.js:336:22)\n    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\\Sites\\reporting-application\\node_modules\\regenerator-runtime\\runtime.js:95:21)\n    at step (C:\\Sites\\reporting-application\\node_modules\\babel-runtime\\helpers\\asyncToGenerator.js:17:30)\n    at C:\\Sites\\reporting-application\\node_modules\\babel-runtime\\helpers\\asyncToGenerator.js:28:20\n    at run (C:\\Sites\\reporting-application\\node_modules\\core-js\\library\\modules\\es6.promise.js:87:22)\n    at C:\\Sites\\reporting-application\\node_modules\\core-js\\library\\modules\\es6.promise.js:100:28\n    at flush (C:\\Sites\\reporting-application\\node_modules\\core-js\\library\\modules\\_microtask.js:18:9)\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\n    at process._tickCallback (internal/process/next_tick.js:98:9)\n```\n\nThis also seems to be any plugin which defines its own `aurelia: {build: resources: []}` configuration. The Webpack Plugin doesn't seem to be handling this at all. Even manually specifying the paths in my application `package.json` and removing the plugin resources definition results in the same error breaking the app.\n\n**Expected/desired behavior:**\nPlugins which define resources get appropriately parsed without error.\n\n<!--\nIf the current behavior is a bug, please provide the steps to reproduce and, if possible, a minimal demo of the\nproblem along with a runnable gist, if possible.\nTo create a runnable gist, go to https://gist.run/?id=7542e061bc940cde506b&sha=6821c521a6c7bae6f59a36fb8628ecd1032b2d10\nThen click \"Fork to Public Gist\".\nCreate your gist, then finally click \"Update Gist.\" Include a link to the gist.run below.\n-->\n"},"comment":{"url":"https://api.github.com/repos/aurelia/webpack-plugin/issues/comments/261628114","html_url":"https://github.com/aurelia/webpack-plugin/issues/59#issuecomment-261628114","issue_url":"https://api.github.com/repos/aurelia/webpack-plugin/issues/59","id":261628114,"user":{"login":"niieani","id":563469,"avatar_url":"https://avatars.githubusercontent.com/u/563469?v=3","gravatar_id":"","url":"https://api.github.com/users/niieani","html_url":"https://github.com/niieani","followers_url":"https://api.github.com/users/niieani/followers","following_url":"https://api.github.com/users/niieani/following{/other_user}","gists_url":"https://api.github.com/users/niieani/gists{/gist_id}","starred_url":"https://api.github.com/users/niieani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niieani/subscriptions","organizations_url":"https://api.github.com/users/niieani/orgs","repos_url":"https://api.github.com/users/niieani/repos","events_url":"https://api.github.com/users/niieani/events{/privacy}","received_events_url":"https://api.github.com/users/niieani/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T20:02:22Z","updated_at":"2016-11-18T20:02:22Z","body":"@MikeBull94 I believe this was fixed. In any case, a brand new set of webpack plugins for aurelia is coming soon and it should be free of this sort of problems."}}
{"actor":{"display_login":"niieani"}}