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

TypeError when running the example #26

Open
Larsschoen opened this issue Jul 27, 2022 · 6 comments
Open

TypeError when running the example #26

Larsschoen opened this issue Jul 27, 2022 · 6 comments

Comments

@Larsschoen
Copy link

After installation and copying the example code (from the Quick start example), I get the following error when running:

TypeError: Cannot read properties of undefined (reading 'insertBefore') thrown inside /node_modules/anychart/dist/js/anychart-bundle.min.js:84:440

Node: 16.15.1
anychart-nodejs: 1.3.8
OS: MacOS Big Sur 11.6.8

@rebeccapeltz
Copy link

same problem - seems to occur when you add the chart to the container
chart.container('container');

@billylo1
Copy link

This worked before. Seems to be broken recently somewhere.

@apatnaik14
Copy link

apatnaik14 commented Aug 31, 2022

@Larsschoen @billylo1 @rebeccapeltz Seeing the same issue as well. I was hoping to ask if there is a known workaround to this?

@billylo1
Copy link

I gave up after trying different combinations of node, jsdom and anychart. (problem does not seem to be related to the anychart-nodejs add-on). I switched to use quickchart.io

@apatnaik14
Copy link

Not sure if this helps, but for me the issue was being caused due to a missing dependency. I was using JSDOM to render the window which was being used by anychart. The jsdom was missing in my installed packages. Once I added that dependency the typeError subsided.

@rebeccapeltz
Copy link

I did install the jsdom package.

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

No branches or pull requests

4 participants