1.開發(fā)中遇到的報(bào)錯(cuò)信息1:
Cannot assign to read only property 'exports' of object '#<Object>' (mix require and export)
google到的報(bào)錯(cuò)原因:
You can mix?require?and?export. You can't mix?import?and?module.exports.
#測試通過蓄氧,報(bào)錯(cuò)解決。
2.開發(fā)中遇到的報(bào)錯(cuò)信息2:
Cannot assign to read only property 'exports' of object '#<Object>'
google到答案:
https://github.com/vuejs/vue-cli/issues/2675
采用解決方案中的
其中槐脏,entities設(shè)置為了報(bào)錯(cuò)文件所在的文件夾喉童。
重啟,不再報(bào)錯(cuò)。
個(gè)人認(rèn)為解決方案不算很理想堂氯,其他解決方案后續(xù)調(diào)研中蔑担。