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

Fastboot compatibility is still an issue #28

Open
techsoldaten opened this issue May 3, 2017 · 1 comment
Open

Fastboot compatibility is still an issue #28

techsoldaten opened this issue May 3, 2017 · 1 comment

Comments

@techsoldaten
Copy link

Getting the following error compiling my app with ember-dragula using Ember 2.12 and the latest version of Fastboot.

ReferenceError: document is not defined

It looks like this is the offending code, but I don't see anything like it in the repo:

module.exports = useNative() ? NativeCustomEvent :

// IE >= 9
'function' === typeof document.createEvent ? function CustomEvent (type, params) {
  var e = document.createEvent('CustomEvent');
  if (params) {
    e.initCustomEvent(type, params.bubbles, params.cancelable, params.detail);
  } else {
    e.initCustomEvent(type, false, false, void 0);
  }
  return e;
} :
@techsoldaten
Copy link
Author

Added the library in ember-cli-build.js. Same issue pops up.

This appears to be a problem with the latest version of the library, not the addon.

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