{"action":"created","issue":{"url":"https://api.github.com/repos/nhnent/tui.chart/issues/119","repository_url":"https://api.github.com/repos/nhnent/tui.chart","labels_url":"https://api.github.com/repos/nhnent/tui.chart/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/nhnent/tui.chart/issues/119/comments","events_url":"https://api.github.com/repos/nhnent/tui.chart/issues/119/events","html_url":"https://github.com/nhnent/tui.chart/issues/119","id":343039691,"node_id":"MDU6SXNzdWUzNDMwMzk2OTE=","number":119,"title":"Webpack + Babel-polyfill: \"only one instance of babel-polyfill is allowed\", cannot load module","user":{"login":"GitSquared","id":24496417,"node_id":"MDQ6VXNlcjI0NDk2NDE3","avatar_url":"https://avatars1.githubusercontent.com/u/24496417?v=4","gravatar_id":"","url":"https://api.github.com/users/GitSquared","html_url":"https://github.com/GitSquared","followers_url":"https://api.github.com/users/GitSquared/followers","following_url":"https://api.github.com/users/GitSquared/following{/other_user}","gists_url":"https://api.github.com/users/GitSquared/gists{/gist_id}","starred_url":"https://api.github.com/users/GitSquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitSquared/subscriptions","organizations_url":"https://api.github.com/users/GitSquared/orgs","repos_url":"https://api.github.com/users/GitSquared/repos","events_url":"https://api.github.com/users/GitSquared/events{/privacy}","received_events_url":"https://api.github.com/users/GitSquared/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T09:37:54Z","updated_at":"2018-07-26T09:43:18Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThank you for your contribution.\r\n\r\nWhen it comes to write an issue, please, use the template below.\r\nTo use the template is mandatory for submit new issue and we won't reply the issue that without the template.\r\n-->\r\n\r\n<!-- TEMPLATE -->\r\n\r\nI'm trying to use tui-chart on a webpack project in which i use `babel-polyfill`.\r\n\r\n## Version\r\ntui-chart v3.2.1 (from NPM)\r\n\r\n## Development Environment\r\nWebpack 4, babel-polyfill 6.26\r\n\r\n## Current Behavior\r\nWhen importing tui-chart, it throws an error stating that \"only one instance of babel-polyfill is allowed\". **Manually editing the source to bypass this check makes everything works flawlessly**, so i'm wondering why it's there.\r\n\r\n```js\r\n// webpack-config.js\r\nmodule.exports = {\r\n    entry: [\"babel-polyfill\", \"./webapp/index.js\"],\r\n    mode: \"development\",\r\n    module: {\r\n        rules: [\r\n            { test: /\\.js$/, exclude: /node_modules/, loader: \"babel-loader\" }\r\n        ]\r\n    },\r\n    ...\r\n};\r\n```\r\n\r\n```js\r\n// webapp/index.js\r\nimport \"babel-polyfill\";\r\nimport chart from \"tui-chart\";\r\n\r\n// Console error throwed: \"only one instance of babel-polyfill is allowed\".\r\n```\r\n\r\n```js\r\n// tui-chart.js line 83\r\n    if (global._babelPolyfill) {\r\n>\t  throw new Error(\"only one instance of babel-polyfill is allowed\");\r\n\t}\r\n\tglobal._babelPolyfill = true;\r\n```\r\n\r\n## Expected Behavior\r\ntui-chart gets loaded without throwing any blocking error."},"comment":{"url":"https://api.github.com/repos/nhnent/tui.chart/issues/comments/408040771","html_url":"https://github.com/nhnent/tui.chart/issues/119#issuecomment-408040771","issue_url":"https://api.github.com/repos/nhnent/tui.chart/issues/119","id":408040771,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODA0MDc3MQ==","user":{"login":"jinwoo-kim-nhn","id":35218826,"node_id":"MDQ6VXNlcjM1MjE4ODI2","avatar_url":"https://avatars1.githubusercontent.com/u/35218826?v=4","gravatar_id":"","url":"https://api.github.com/users/jinwoo-kim-nhn","html_url":"https://github.com/jinwoo-kim-nhn","followers_url":"https://api.github.com/users/jinwoo-kim-nhn/followers","following_url":"https://api.github.com/users/jinwoo-kim-nhn/following{/other_user}","gists_url":"https://api.github.com/users/jinwoo-kim-nhn/gists{/gist_id}","starred_url":"https://api.github.com/users/jinwoo-kim-nhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinwoo-kim-nhn/subscriptions","organizations_url":"https://api.github.com/users/jinwoo-kim-nhn/orgs","repos_url":"https://api.github.com/users/jinwoo-kim-nhn/repos","events_url":"https://api.github.com/users/jinwoo-kim-nhn/events{/privacy}","received_events_url":"https://api.github.com/users/jinwoo-kim-nhn/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T09:43:18Z","updated_at":"2018-07-26T09:43:18Z","author_association":"CONTRIBUTOR","body":"@GitSquared \r\n\r\n'tui chart' has a dependency on 'babel-polyfill', so babel-polyfill exists in the code.\r\nWe are aware of this problem and plan to distribute files that do not have 'babel-polyfill' as soon as possible.\r\n\r\nthanks"}}
{"actor":{"display_login":"jinwoo-kim-nhn"}}