[Vuejs]-Why does Microsoft Edge not recognize "this*" pointer to object while I use Vue.JS?

13๐Ÿ‘

I ran into this issue myself, what I found is that the error happens only with un-minified version https://unpkg.com/vue@2.5.17/dist/vue.js, it goes away in https://unpkg.com/vue@2.5.17/dist/vue.min.js. And it only happens in Microsoft Edge!

I just figured out what worked for me. It happens when you have this in your template referencing your data. For example the code below has this.selectedImages, I simply removed this and the error went away. Hope this helps.

<v-btn @click="editImages"
       color="info"
       v-show="this.selectedImages.length > 0">
            Edit
</v-btn>
๐Ÿ‘คRay

Leave a comment