When initially establishing an array within the vuex
store like this:
const state = {
tags: [1, 2, 3]
}
Unexpectedly, both Internet Explorer 11 and Microsoft Edge are rendering a blank page along with this error message:
Error: “Unknown name” error in vue.esm.js
This issue doesn't occur on Chrome, Firefox, Safari, or Opera.
However, the problem disappears when the values are removed:
const state = {
tags: []
}
I have babel-polyfill integrated (main.js: import 'babel-polyfill'). Here's my package.json configuration:
"dependencies": {
"@xkeshi/image-compressor": "^0.5.2",
"axios": "^0.17.1",
"bulma": "^0.6.1",
...
},
"devDependencies": {
"autoprefixer": "^7.2.3",
"babel-core": "^6.26.0",
...
},
The same error arises when applying vuex-persistedstate
.