Cannot assign to read only property 'exports' of object '#<Object>' 基本原因是import 和module.exports 是不能混用在.vue的文件里面的 webpack 2中不允许混用import和module.exports module.exports={ 改为 export default {