{"action":"closed","issue":{"url":"https://api.github.com/repos/swimlane/ngx-charts/issues/572","repository_url":"https://api.github.com/repos/swimlane/ngx-charts","labels_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/572/labels{/name}","comments_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/572/comments","events_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/572/events","html_url":"https://github.com/swimlane/ngx-charts/issues/572","id":263235962,"node_id":"MDU6SXNzdWUyNjMyMzU5NjI=","number":572,"title":"Visual Studio 2017 Angular template - MouseEvent is not defined on second run","user":{"login":"nukec","id":3589518,"node_id":"MDQ6VXNlcjM1ODk1MTg=","avatar_url":"https://avatars2.githubusercontent.com/u/3589518?v=4","gravatar_id":"","url":"https://api.github.com/users/nukec","html_url":"https://github.com/nukec","followers_url":"https://api.github.com/users/nukec/followers","following_url":"https://api.github.com/users/nukec/following{/other_user}","gists_url":"https://api.github.com/users/nukec/gists{/gist_id}","starred_url":"https://api.github.com/users/nukec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nukec/subscriptions","organizations_url":"https://api.github.com/users/nukec/orgs","repos_url":"https://api.github.com/users/nukec/repos","events_url":"https://api.github.com/users/nukec/events{/privacy}","received_events_url":"https://api.github.com/users/nukec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-05T19:17:10Z","updated_at":"2018-07-17T15:03:29Z","closed_at":"2018-07-17T15:03:29Z","author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here\r\n```\r\n\r\n**Current behavior**\r\nWhen I run net core app first time it shows chart. I stop app then I re run again, it throws:\r\n**NodeInvocationException: Prerendering failed because of error: ReferenceError: MouseEvent is not defined\r\nat Object../src/force-directed-graph/force-directed-graph.component.ts (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:33746:38)\r\nat __webpack_require__ (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:20623:30)\r\nat Object../src/force-directed-graph/force-directed-graph.module.ts (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:33779:90)\r\nat __webpack_require__ (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:20623:30)\r\nat Object../src/ngx-charts.module.ts (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:36294:108)\r\nat __webpack_require__ (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:20623:30)\r\nat Object../src/index.ts (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:35325:77)\r\nat __webpack_require__ (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:20623:30)\r\nat ./node_modules/base64-js/index.js.exports.byteLength (D:\\CodePlayground\\ClientApp\\dist\\main-server.js:20669:18)\r\nat D:\\CodePlayground\\ClientApp\\dist\\main-server.js:20672:10\r\nCurrent directory is: D:\\CodePlayground**\r\n\r\n**Expected behavior**\r\nChart should always been displayed.\r\n\r\n**Reproduction of the problem**\r\n<!-- If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/TLx2vYlCTLsqcLwvWafd). -->\r\n\r\nCode:\r\nI imported in module:\r\n```\r\nimport {BrowserModule} from '@angular/platform-browser';\r\nimport {BrowserAnimationsModule} from '@angular/platform-browser/animations';\r\nimport {NgxChartsModule} from '@swimlane/ngx-charts';\r\n```\r\n\r\nand same modules in ngModule import.\r\n\r\nSo point is the chars are working on first run then not.\r\n\r\n* **ngx-charts version:*6.0.2* \r\n<!-- Check whether this is still an issue in the most recent ngx-charts version -->\r\n\r\n* **Angular version:** 4.2.5\r\n<!-- Check whether this is still an issue in the most recent Angular version -->"}}
{"actor":{"display_login":"marjan-georgiev"}}