Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
运行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项目时报错如下:
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
更多推荐
已为社区贡献1条内容
所有评论(0)