问题是这样的:如下》》 

Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法

解决办法:

1“:我的webpack 最高版本,造成 混用import和module.exports ;所以降低webpack版本 安装指定版本:npm install webpack@ -g 例如:npm install webpack@3.6.0 -g

删除 编译目录文件:

Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法

 

2重新生成 然后输入启动命令:

 Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法

 

成功解决!效果:

 

 

方法二:

 

 Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法

 

 注释掉后一个

Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法

 

 重新生成,启动项目 OK!

相关文章:

  • 2021-06-13
  • 2021-04-25
  • 2022-03-05
  • 2021-08-23
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-07-28
相关资源
相似解决方案