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 #55

Open
kieranshanley opened this issue Jun 30, 2020 · 0 comments
Open

ReferenceError: window is not defined #55

kieranshanley opened this issue Jun 30, 2020 · 0 comments

Comments

@kieranshanley
Copy link

When running the example code I get
/home//node_modules/dialogs/index.js:18
'.url': opt.hostname || window.location.hostname
^

ReferenceError: window is not defined

If I run the same code in RunKit it suggests:
Use global instead of window.
RunKit is a node environment, so window and other browser features won’t exist. If you’re just trying to access the global object, you can simply use global instead.

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