Vuex: Vuex store not supported in IE 11

Created on 23 Apr 2017  Â·  5Comments  Â·  Source: vuejs/vuex

Version

2.3.0

Reproduction link

https://jsfiddle.net/fgzg1cye/

Steps to reproduce

Simply imported vuex, created a store and inserted it into the vue app and then none of the vuejs code is recognized in the browser IE 11. I'm using Laravel by the way.

What is expected?

Vuex to work in IE 11

What is actually happening?

VueJS code is no longer recognized.

Most helpful comment

Vuex supports IE 11. You need to load Promise polyfill like https://github.com/stefanpenner/es6-promise.

All 5 comments

Vuex supports IE 11. You need to load Promise polyfill like https://github.com/stefanpenner/es6-promise.

FYI, another thing that IE11 cannot do is this

const app = new Vue({
el: '#app',
store,
computed:{…

I'm not sure what it is called but IE11 needs it to be this

const app = new Vue({
el: '#app',
store: store,
computed:{…

What is it called?

@getsetbro it's destructuring assignment, you will need to add a polyfill to the browser and then will be good to go.

Is it identical to this?
"store: store"

Yes

Was this page helpful?
0 / 5 - 0 ratings