Skip to content

Fastboot compatibility is still an issue #28

@techsoldaten

Description

@techsoldaten

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;
} :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions