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

Throw Error when imported în non-browser environment #11

Open
asynxc opened this issue Aug 1, 2018 · 0 comments
Open

Throw Error when imported în non-browser environment #11

asynxc opened this issue Aug 1, 2018 · 0 comments

Comments

@asynxc
Copy link

asynxc commented Aug 1, 2018

Hello,

We use this module to polyfill IE10. But when using it in SSR powered application, it crash the server with following error :

var MutationObserver = window.MutationObserver ^ ReferenceError: window is not defined at Object.<anonymous> (/home/.../editor/node_modules/mutation-observer/index.js:3:24)

a PR submitted in order to fix this issue #10

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