{"action":"opened","issue":{"url":"https://api.github.com/repos/swimlane/ngx-charts/issues/568","repository_url":"https://api.github.com/repos/swimlane/ngx-charts","labels_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/568/comments","events_url":"https://api.github.com/repos/swimlane/ngx-charts/issues/568/events","html_url":"https://github.com/swimlane/ngx-charts/issues/568","id":262725444,"number":568,"title":"Error webpack and Ionic 3 with lazy loaded pages","user":{"login":"mebibou","id":305342,"avatar_url":"https://avatars3.githubusercontent.com/u/305342?v=4","gravatar_id":"","url":"https://api.github.com/users/mebibou","html_url":"https://github.com/mebibou","followers_url":"https://api.github.com/users/mebibou/followers","following_url":"https://api.github.com/users/mebibou/following{/other_user}","gists_url":"https://api.github.com/users/mebibou/gists{/gist_id}","starred_url":"https://api.github.com/users/mebibou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mebibou/subscriptions","organizations_url":"https://api.github.com/users/mebibou/orgs","repos_url":"https://api.github.com/users/mebibou/repos","events_url":"https://api.github.com/users/mebibou/events{/privacy}","received_events_url":"https://api.github.com/users/mebibou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-04T09:42:07Z","updated_at":"2017-10-04T09:42:07Z","closed_at":null,"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 using the library and loading the ionic app in a browser, I get the following error when navigating to a lazy loaded page:\r\n\r\n```\r\nERROR Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined\r\nTypeError: Cannot read property 'call' of undefined\r\n    at __webpack_require__ (bootstrap 5deba61787c2e6e288ca:54)\r\n    at src lazy:56\r\n    at t.invoke (polyfills.js:3)\r\n    at Object.onInvoke (core.es5.js:3890)\r\n    at t.invoke (polyfills.js:3)\r\n    at r.run (polyfills.js:3)\r\n    at polyfills.js:3\r\n    at t.invokeTask (polyfills.js:3)\r\n    at Object.onInvokeTask (core.es5.js:3881)\r\n    at t.invokeTask (polyfills.js:3)\r\n    at __webpack_require__ (bootstrap 5deba61787c2e6e288ca:54)\r\n    at src lazy:56\r\n    at t.invoke (polyfills.js:3)\r\n    at Object.onInvoke (core.es5.js:3890)\r\n    at t.invoke (polyfills.js:3)\r\n    at r.run (polyfills.js:3)\r\n    at polyfills.js:3\r\n    at t.invokeTask (polyfills.js:3)\r\n    at Object.onInvokeTask (core.es5.js:3881)\r\n    at t.invokeTask (polyfills.js:3)\r\n    at c (polyfills.js:3)\r\n    at Object.reject (polyfills.js:3)\r\n    at NavControllerBase._fireError (nav-controller-base.js:322)\r\n    at NavControllerBase._failed (nav-controller-base.js:310)\r\n    at nav-controller-base.js:365\r\n    at t.invoke (polyfills.js:3)\r\n    at Object.onInvoke (core.es5.js:3890)\r\n    at t.invoke (polyfills.js:3)\r\n    at r.run (polyfills.js:3)\r\n    at polyfills.js:3\r\n```\r\n\r\nMy app is working fine when not including and using the library, so I guess it somehow messes up the webpack require feature.\r\n\r\n**Reproduction of the problem**\r\nI have an Ionic app with lazy loaded pages. When the application starts, the first page is displayed, then if I try to move to another page I get the error above.\r\n\r\nAlso, I deploy the content of the `www` folder generated by Ionic on a bucket in S3 with static hosting. Everything works fine unless I use the library\r\n\r\n**Please tell us about your environment:**\r\n```\r\n$ ionic info\r\n\r\ncli packages:\r\n\r\n    @ionic/cli-utils  : 1.12.0\r\n    ionic (Ionic CLI) : 3.12.0\r\n\r\nglobal packages:\r\n\r\n    cordova (Cordova CLI) : 6.5.0 \r\n\r\nlocal packages:\r\n\r\n    @ionic/app-scripts : 3.0.0\r\n    Cordova Platforms  : android 6.1.2 browser 4.1.0\r\n    Ionic Framework    : ionic-angular 3.7.1\r\n\r\nSystem:\r\n\r\n    Android SDK Tools : 26.1.1\r\n    ios-deploy        : 1.9.1 \r\n    Node              : v7.4.0\r\n    npm               : 4.1.2 \r\n    OS                : macOS Sierra\r\n    Xcode             : Xcode 9.0 Build version 9A235 \r\n```\r\n\r\n* **ngx-charts version:** x.x.x\r\n`6.0.2`\r\n\r\nd3.js version: `4.9.1`\r\n\r\n* **Angular version:**\r\n`4.4.3`\r\n\r\n* **Browser:**\r\nChrome 61\r\n\r\n* **Language:**\r\nTypeScript"}}
{"actor":{"display_login":"mebibou"}}