{"action":"created","issue":{"url":"https://api.github.com/repos/highcharts/highcharts/issues/5358","repository_url":"https://api.github.com/repos/highcharts/highcharts","labels_url":"https://api.github.com/repos/highcharts/highcharts/issues/5358/labels{/name}","comments_url":"https://api.github.com/repos/highcharts/highcharts/issues/5358/comments","events_url":"https://api.github.com/repos/highcharts/highcharts/issues/5358/events","html_url":"https://github.com/highcharts/highcharts/issues/5358","id":157621841,"number":5358,"title":"Loading multiple versions of highcharts","user":{"login":"deanshub","id":2688676,"avatar_url":"https://avatars.githubusercontent.com/u/2688676?v=3","gravatar_id":"","url":"https://api.github.com/users/deanshub","html_url":"https://github.com/deanshub","followers_url":"https://api.github.com/users/deanshub/followers","following_url":"https://api.github.com/users/deanshub/following{/other_user}","gists_url":"https://api.github.com/users/deanshub/gists{/gist_id}","starred_url":"https://api.github.com/users/deanshub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanshub/subscriptions","organizations_url":"https://api.github.com/users/deanshub/orgs","repos_url":"https://api.github.com/users/deanshub/repos","events_url":"https://api.github.com/users/deanshub/events{/privacy}","received_events_url":"https://api.github.com/users/deanshub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/highcharts/highcharts/labels/Pending%20reply","name":"Pending reply","color":"02e10c"},{"url":"https://api.github.com/repos/highcharts/highcharts/labels/Undecided","name":"Undecided","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-31T08:58:08Z","updated_at":"2016-05-31T11:45:00Z","closed_at":null,"body":"Hi,\r\n\r\nI have highcharts3 within my system and I want to start using highcharts4 also.\r\n\r\nI shouldn't have any problem since the latest version supports webpack...\r\nBut [this line](https://github.com/highcharts/highcharts/blob/66e3599e149b2e51e11838b8d9561c259a0b1bed/js/parts/Globals.js#L106) throws error 16 (multiple highcharts loaded) and stops the execution.\r\n\r\n#### Expected behaviour\r\nIt should let me load highcharts more then once since i'm not overriding the highcharts of the window scope...\r\n\r\n#### Actual behaviour\r\nIt throws an error and does not allow me to load highcharts 4\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/highcharts/highcharts/issues/comments/222665031","html_url":"https://github.com/highcharts/highcharts/issues/5358#issuecomment-222665031","issue_url":"https://api.github.com/repos/highcharts/highcharts/issues/5358","id":222665031,"user":{"login":"deanshub","id":2688676,"avatar_url":"https://avatars.githubusercontent.com/u/2688676?v=3","gravatar_id":"","url":"https://api.github.com/users/deanshub","html_url":"https://github.com/deanshub","followers_url":"https://api.github.com/users/deanshub/followers","following_url":"https://api.github.com/users/deanshub/following{/other_user}","gists_url":"https://api.github.com/users/deanshub/gists{/gist_id}","starred_url":"https://api.github.com/users/deanshub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanshub/subscriptions","organizations_url":"https://api.github.com/users/deanshub/orgs","repos_url":"https://api.github.com/users/deanshub/repos","events_url":"https://api.github.com/users/deanshub/events{/privacy}","received_events_url":"https://api.github.com/users/deanshub/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T11:45:00Z","updated_at":"2016-05-31T11:45:00Z","body":"I understand why this would work, but Its not possible for me to load Highcharts 4 before Highcharts 3 :disappointed: \r\nI did managed to find a workaround using webpack's string-replace-loader, I added this to my webpack.config file\r\n```\r\n{test: /highcharts.src.js$/, loader: 'string-replace', query:{\r\n    search:'error(16, true)',\r\n    replace:'{win:win}',\r\n}},\r\n```\r\nThis just ignores the error and does not hurt my original Highcharts file :wink: \r\n\r\nCan you think of a better way to handle this?"}}
{"actor":{"display_login":"deanshub"}}