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

ReferenceError: window is not defined #93

Open
bertrod opened this issue Mar 17, 2021 · 0 comments
Open

ReferenceError: window is not defined #93

bertrod opened this issue Mar 17, 2021 · 0 comments

Comments

@bertrod
Copy link

bertrod commented Mar 17, 2021

Hello,

Thank you for this great plugin. I am using for a nextjs react application but I have bumped into an error I can't get rid off unless I comment the following line:

var fileApi = !!window.File;

Otherwise, when I try to build my application I get the following error:

image

Removing the line makes the problem go away and the component keeps working fine so I am not sure if you really need it or you could avoid calling window there.

Thank you!
Alberto

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