Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#[Object]‘
Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#[Object]‘
原因
import 不能和module.export混用
用了import 只能用export.default
示例
import 不能和module.export混用
用了import 只能用export.default