<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[VUE JS 报错Uncaught TypeError: Cannot assign to read only property &#x27;exports&#x27; of object &#x27;#&lt;Object&gt;&#x27;]]></title><description><![CDATA[<p dir="auto">导致报错原因：</p>
<p dir="auto"><strong>在webpack打包的时候，可以在js文件中混用require和export。但是不能混用import 以及module.exports。<br />
因为webpack 2中不允许混用import和module.exports,</strong><br />
根据线索更改报错<br />
将：</p>
<pre><code>module.exports={***}
</code></pre>
<p dir="auto">改为：</p>
<pre><code>export default {***};
</code></pre>
<p dir="auto">本次GenoStack项目中如何解决：<br />
1、原因在更新WDL版本之前一切正常（目标定位仅是WDL相关代码）<br />
2、然后在WDL依赖相关代码中排查出现<strong>module.exports</strong>的地方结果有一处确实有出现<br />
3、然后将出现<strong>module.exports</strong>更改为<strong>export default</strong><br />
4、重新打包，发布版本 问题解决</p>
]]></description><link>http://an.forum.genostack.com/topic/317/vue-js-报错uncaught-typeerror-cannot-assign-to-read-only-property-exports-of-object-object</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 12:34:07 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/317.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Jun 2021 02:50:51 GMT</pubDate><ttl>60</ttl></channel></rss>