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

Annotations not working #434

Open
revisionfour opened this issue Jan 31, 2019 · 1 comment
Open

Annotations not working #434

revisionfour opened this issue Jan 31, 2019 · 1 comment

Comments

@revisionfour
Copy link

I am having an issue with annotations in my project.

I have created this example which shows annotations working in a sandbox environment. It appears it will only work with highcharts version 6.0.6.
https://codesandbox.io/s/1rq3vl1vr4

However I am having an issue in my project using the same versions

In my project I have the lines
import Annotations from 'highcharts/modules/annotations';
import ReactHighcharts from "react-highcharts";

Annotations(ReactHighcharts.Highcharts);

I'm getting this error
Annotations(ReactHighcharts.Highcharts);
^
2019-01-31 15:52:41 [ERROR] {d10eb595-5caa-4c56-9d05-7f3aded9019c} TypeError: Cannot read property 'prototype' of undefined

In my package.json I'm using
"highcharts": "6.0.6",
"react-highcharts": "16.0.2",

Any ideas?

@kirjs
Copy link
Owner

kirjs commented Oct 13, 2019

Please help us by reproducing your issue here:
https://stackblitz.com/fork/react-highcharts-demo
(codesandbox would also work)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants