Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Unable to make it work under IE11 #22

@super2ni

Description

@super2ni

Hello there,

Thank you for the hard work on this project.

I am trying to build a website in this context:

  • Using Vue CLI 3.0.3
  • Use Office Fabric UI for the design
  • IE11 as one of the browsers

I created a very simple Vue SPA using Vue CLI and then added your project using npm.
As soon as I added the following code to the App.vue component, my application was not working on IE11:
<ou-button>Create Account</ou-button>

Error in dev console was (sorry for the French language):

SCRIPT438: L’objet ne gère pas la propriété ou la méthode « includes »
vue.runtime.esm.js (3273,7)

But as soon as I have added the polyfill for Array.prototype.includes in index.html, the problem went off:
<script src="https://polyfill.io/v2/polyfill.js?features=Array.prototype.includes"></script>

I do not like to add external JS reference, do you mind telling what have I done wrong?

Thank you,
Denis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions