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

刪除 編譯目錄文件:

 

2重新生成 然后輸入啟動命令:

 

 

成功解決!效果:

 

 

方法二:

 

 

 

 注釋掉后一個

 

 重新生成,啟動項目 OK!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Vue報錯:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#‘的解決方法 Uncaught TypeError: Cannot assign to read only property 'exports' of object '#' Vue 使用自定義組件時報錯:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#' 關於vue-cli3打包時遇到Cannot assign to read only property 'exports' of object '#'問題的解決方法。 vue運行報錯error:Cannot assign to read only property 'exports' of object '#' vue-cli3 打包時使用‘babel-loader’遇到Cannot assign to read only property ‘exports’ of object '#'問題的解決方法。 Cannot assign to read only property 'exports' of object '#' [one day one question] webpack 打包報錯 Cannot assign to read only property 'exports' of object '#' js嵌套對象報錯Uncaught TypeError: Cannot read property 'name' of undefined at解決方法 vue報錯 Uncaught TypeError: Cannot read property of null
 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM