Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
本文主要包含web前端,Vue,webpack等相关知识,blacklife00544的专栏希望在学习及工作中可以帮助到您
运行Vue项目时报错如下:
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
原因:
The code above is ok. You can mix require and export. You can‘t mix import and module.exports.
使用Vue和webpack时,不能同事使用import和module.exports