Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'

来源:互联网 发布:jsp页面连接数据库 编辑:程序博客网 时间:2024/05/22 18:13

运行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

阅读全文
0 0
原创粉丝点击