{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/hot-module-reload/issues/14","repository_url":"https://api.github.com/repos/aurelia/hot-module-reload","labels_url":"https://api.github.com/repos/aurelia/hot-module-reload/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/hot-module-reload/issues/14/comments","events_url":"https://api.github.com/repos/aurelia/hot-module-reload/issues/14/events","html_url":"https://github.com/aurelia/hot-module-reload/issues/14","id":234551436,"number":14,"title":"Container.instance undefined","user":{"login":"boysensci","id":29251745,"avatar_url":"https://avatars2.githubusercontent.com/u/29251745?v=4","gravatar_id":"","url":"https://api.github.com/users/boysensci","html_url":"https://github.com/boysensci","followers_url":"https://api.github.com/users/boysensci/followers","following_url":"https://api.github.com/users/boysensci/following{/other_user}","gists_url":"https://api.github.com/users/boysensci/gists{/gist_id}","starred_url":"https://api.github.com/users/boysensci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boysensci/subscriptions","organizations_url":"https://api.github.com/users/boysensci/orgs","repos_url":"https://api.github.com/users/boysensci/repos","events_url":"https://api.github.com/users/boysensci/events{/privacy}","received_events_url":"https://api.github.com/users/boysensci/received_events","type":"User","site_admin":false},"labels":[{"id":487544899,"url":"https://api.github.com/repos/aurelia/hot-module-reload/labels/bug","name":"bug","color":"ee0701","default":true},{"id":487544904,"url":"https://api.github.com/repos/aurelia/hot-module-reload/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"niieani","id":563469,"avatar_url":"https://avatars1.githubusercontent.com/u/563469?v=4","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},"assignees":[{"login":"niieani","id":563469,"avatar_url":"https://avatars1.githubusercontent.com/u/563469?v=4","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}],"milestone":null,"comments":4,"created_at":"2017-06-08T14:43:05Z","updated_at":"2018-03-22T12:57:03Z","closed_at":"2018-03-22T12:32:41Z","author_association":"NONE","body":"**I'm submitting a bug report**\r\n\r\n* **Library Version:**\r\n0.1.0\r\n\r\n\r\n**Please tell us about your environment:**\r\n* **Operating System:**\r\nWindows 10\r\n\r\n* **Node Version:**\r\n7.10.0\r\n\r\n* **NPM Version:**\r\n5.0.3\r\n\r\n* **JSPM OR Webpack AND Version**\r\nwebpack 2.6.1\r\n\r\n* **Browser:**\r\nChrome 58\r\n\r\n* **Language:**\r\nESNext\r\n\r\n\r\n**Current behavior:**\r\nWe have a ASP.NET Core project serving an API with Aurelia as SPA (also served by ASP.NET Core and packed with Webpack, inspired by https://github.com/aspnet/JavaScriptServices/tree/dev/templates/AureliaSpa). When we run our minimal setup with only a main.js, app.js and frontpage.js with almost no content, we receive the following error:\r\n```\r\nUncaught (in promise) TypeError: Cannot read property 'get' of undefined\r\n    at new HmrContext (aurelia-hot-module-reload.js:38)\r\n    at WebpackLoader.<anonymous> (aurelia-loader-webpack.js:67)\r\n    at Generator.next (<anonymous>)\r\n    at aurelia-loader-webpack.js:6\r\n    at Promise (<anonymous>)\r\n    at 58.__awaiter (aurelia-loader-webpack.js:2)\r\n    at Object.fetch (aurelia-loader-webpack.js:58)\r\n    at WebpackLoader.<anonymous> (aurelia-loader-webpack.js:105)\r\n    at Generator.next (<anonymous>)\r\n    at aurelia-loader-webpack.js:6\r\n```\r\nThe line that fails is this one:\r\n`this.viewEngine = Container.instance.get(ViewEngine);`\r\n(https://github.com/aurelia/hot-module-reload/blob/master/src/aurelia-hot-module-reload.ts#L42)\r\n\r\n**Expected/desired behavior:**\r\nExecution should not fail.\r\n\r\nI'm not sure if this is a bug, or a misconfiguration. Sorry if this shouldn't have been posted here.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/hot-module-reload/issues/comments/375295229","html_url":"https://github.com/aurelia/hot-module-reload/issues/14#issuecomment-375295229","issue_url":"https://api.github.com/repos/aurelia/hot-module-reload/issues/14","id":375295229,"user":{"login":"Alexander-Taran","id":1029452,"avatar_url":"https://avatars2.githubusercontent.com/u/1029452?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexander-Taran","html_url":"https://github.com/Alexander-Taran","followers_url":"https://api.github.com/users/Alexander-Taran/followers","following_url":"https://api.github.com/users/Alexander-Taran/following{/other_user}","gists_url":"https://api.github.com/users/Alexander-Taran/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexander-Taran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexander-Taran/subscriptions","organizations_url":"https://api.github.com/users/Alexander-Taran/orgs","repos_url":"https://api.github.com/users/Alexander-Taran/repos","events_url":"https://api.github.com/users/Alexander-Taran/events{/privacy}","received_events_url":"https://api.github.com/users/Alexander-Taran/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T12:57:03Z","updated_at":"2018-03-22T12:57:03Z","author_association":"MEMBER","body":"@boysensci please share if you have been able to repro or found a solution"}}
{"actor":{"display_login":"Alexander-Taran"}}