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

Chartist library can't be imported in react #1304

Open
theLAZYmd opened this issue Nov 26, 2021 · 2 comments
Open

Chartist library can't be imported in react #1304

theLAZYmd opened this issue Nov 26, 2021 · 2 comments
Labels

Comments

@theLAZYmd
Copy link

theLAZYmd commented Nov 26, 2021

There is the use of variable 'window' in global scope, which is undefined on server side

@ktzar
Copy link

ktzar commented May 11, 2022

there's a few functions inside chartist that use the window object, like resize and functionality detection. Those would need to be made conditional to the window object (which is passed at instantiation time as a global param) existing.

@shamiam1980
Copy link

@ktzar
May I ask, how to pass this global param?

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

No branches or pull requests

4 participants