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

Internet Explorer 11 incompatible #61

Open
hungnv-sr opened this issue Sep 19, 2019 · 2 comments
Open

Internet Explorer 11 incompatible #61

hungnv-sr opened this issue Sep 19, 2019 · 2 comments

Comments

@hungnv-sr
Copy link

I haven't try with other version of IE, and I tried to upgrade windows and IE but no luck so far.
Error:
SCRIPT5007: Unable to get property 'apply' of undefined or null reference
line 668 in vuejs-dialog.min.js
I tried babel polyfill but still get the error.

@dinhducit
Copy link

dinhducit commented Feb 20, 2020

I faced the same issue. Any solutions?

@AmphibiousMelon
Copy link

AmphibiousMelon commented Feb 26, 2020

I faced this issue and solved it by including a polyfill for Object.assign before loading vuejs-dialog.

if (typeof Object.assign !== 'function') {
  // Must be writable: true, enumerable: false, configurable: true
  Object.defineProperty(Object, "assign", {
    value: function assign(target, varArgs) { // .length of function is 2
      'use strict';
      if (target === null || target === undefined) {
        throw new TypeError('Cannot convert undefined or null to object');
      }

      var to = Object(target);

      for (var index = 1; index < arguments.length; index++) {
        var nextSource = arguments[index];

        if (nextSource !== null && nextSource !== undefined) {
          for (var nextKey in nextSource) {
            // Avoid bugs when hasOwnProperty is shadowed
            if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
              to[nextKey] = nextSource[nextKey];
            }
          }
        }
      }
      return to;
    },
    writable: true,
    configurable: true
  });
}

import VuejsDialog from 'vuejs-dialog';
window.Vue.use(VuejsDialog);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants