Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highcharts Error 16: Already defined in the page #299

Closed
yasulab opened this issue Mar 21, 2018 · 4 comments · Fixed by #300
Closed

Highcharts Error 16: Already defined in the page #299

yasulab opened this issue Mar 21, 2018 · 4 comments · Fixed by #300
Assignees
Labels
バグ Bug needed to be fixed.

Comments

@yasulab
Copy link
Member

yasulab commented Mar 21, 2018

Stats ページを開くと、ブラウザの Console 上でこんなエラーが出力されていることを確認しました 🐛🔍

application-41e1ed3ee1170ddeb711b3b476d271c917797cec688a1ccbd3a689be6f4386da.js:35 Uncaught Error: Highcharts error #16: www.highcharts.com/errors/16
    at w (application-41e1ed3ee1170ddeb711b3b476d271c917797cec688a1ccbd3a689be6f4386da.js:35)
    at application-41e1ed3ee1170ddeb711b3b476d271c917797cec688a1ccbd3a689be6f4386da.js:35
    at application-41e1ed3ee1170ddeb711b3b476d271c917797cec688a1ccbd3a689be6f4386da.js:35
    at application-41e1ed3ee1170ddeb711b3b476d271c917797cec688a1ccbd3a689be6f4386da.js:35

エラーメッセージにリンク先 (https://www.highcharts.com/errors/16) が添付されていて、辿ってみると原因はこれっぽいです🤔💭

Highcharts already defined in the page

This error happens the second time Highcharts or Highstock is loaded in the same page, so the Highcharts namespace is already defined. Keep in mind that the Highcharts.Chart constructor and all features of Highcharts are included in Highstock, so if you are running Chart and StockChart in combination, you only need to load the highstock.js file.

cf. https://www.highcharts.com/errors/16

@yasulab yasulab added the バグ Bug needed to be fixed. label Mar 21, 2018
nalabjp added a commit to nalabjp/coderdojo.jp that referenced this issue Mar 21, 2018
@nalabjp
Copy link
Member

nalabjp commented Mar 21, 2018

highchartsとhighstockをどちらもrequireすると出るみたいですね。
READMEのとおりに設定していたんですが😅

@yasulab
Copy link
Member Author

yasulab commented Mar 21, 2018

highchartsとhighstockをどちらもrequireすると出るみたいですね。
READMEのとおりに設定していたんですが😅

なるほど! もしかしたら README を修正してあげると良いかもしれないですね ;)

@nalabjp
Copy link
Member

nalabjp commented Mar 21, 2018

michelson/lazy_high_charts#239
PRとissueも既にあるみたいですが、マージされてないみたいですねー😢

@yasulab
Copy link
Member Author

yasulab commented Mar 21, 2018

なるほど、現在対応中みたいですね ;) 共有ありがとうございます! 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
バグ Bug needed to be fixed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants