error in ./node_modules/vux/src/components/divider/index.vue
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| <template>
| <p class="vux-divider">
| <slot></slot>
@ ./node_modules/happypack/loader.js?id=happy-babel-vue!./node_modules/vux-loader/src/script-loader.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/test/getIcon.vue 2:0-59 11:13-20
@ ./src/test/getIcon.vue
@ ./src/router/routeConfig.js
@ ./src/router/index.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
error in ./node_modules/vux/src/components/popup/index.vue
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| <template>
| <transition
| :name="`vux-popup-animate-${position}`">
//webpack.base.conf.js
const vuxLoader = require('vux-loader')
module.exports = vuxLoader.merge(webpackConfig, {
plugins: [
'vux-ui',
'progress-bar',
{
name: 'duplicate-style',
options: {
cssProcessorOptions : {
safe: true,
zindex: false,
autoprefixer: {
add: true,
browsers: [
'iOS >= 7',
'Android >= 4.1'
]
}
}
}
}
]
//package.json
"vux-loader": "^1.2.9",