when i user vue-awesome-swiper in vue , build err ;
ERROR in static/js/vendor.....Unexpected token:name
same question here

version:
"vue": "^2.5.2",
"vue-awesome-swiper": "^3.0.4",
sorry,I check out my webpack file and add this code solved my problem
alias: {
'swiper$': 'swiper/dist/js/swiper.js'
}
Webpack - webpack.config.js:
alias: {
'swiper$': 'swiper/dist/js/swiper.js'
}
Nuxt.js - nuxt.config.js
build: {
extend(webpackConfig) {
webpackConfig.resolve.alias['swiper$'] = 'swiper/dist/js/swiper.js'
webpackConfig.resolve.alias['dom7$'] = 'dom7/dist/dom7.js'
}
}
For anyone coming from google in 2020:
The solution above has moved to "'swiper/js", you can use
alias: {
'swiper$': 'swiper/js/swiper.min.js'
}
Im using
"swiper": "^5.4.0",
"vue-awesome-swiper": "^4.1.1"
Most helpful comment
sorry,I check out my webpack file and add this code solved my problem
alias: {
'swiper$': 'swiper/dist/js/swiper.js'
}