Develop/Vue
[NUXT] error on IE browser
시크라기
2018. 4. 5. 08:55
When I develop with Nuxtjs (Vue.js framework),
I got the object Error on IE(internet explorer) brower like this.
I guess, This occured by nuxt framework's leak browser compatibility.
So, I was googling with this error message..Finally I got the solution..
# nuxt.config.js
build: {
...
vendor: ["babel-polyfill"],
babel: {
presets: [
[
"vue-app",
{
useBuiltIns: true,
targets: { ie: 9, uglify: true }
}
]
]
},
...
The solutions is add 'babel-polyfill' setting in nuxt.config.js file like above..