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

window is not defined #7

Open
hems opened this issue Apr 22, 2020 · 0 comments
Open

window is not defined #7

hems opened this issue Apr 22, 2020 · 0 comments

Comments

@hems
Copy link

hems commented Apr 22, 2020

When rendering react server side i'm getting "window is not defined" error.

I believe the library should account for the fact it might be imported on node.js for server-side rendering or at least detect window is not found and fail gracefully with a console.log or similar

Maybe a static version of the widget could be rendered so taking screenshots with node.js or search engines crawling the page would be able to see there is a chart in there.

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

1 participant