title: TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
body: <p>I am trying to run React Native Web via Expo.</p>
  <p>I keep getting the error:</p>
  <pre><code>TypeError: Cannot assign to read only property 'exports' of object '#&lt;Object&gt;'
  </code></pre>
  <p>As far as I can tell, this is due to some module export issue.</p>
  <p>I have created a babel.config.js like this:</p>
  <pre><code>module.exports = function (api) {
    api.cache(true);
    return {
      &quot;presets&quot;: [
        [&quot;babel-preset-expo&quot;, {
        &quot;web&quot;: {
          &quot;disableImportExportTransform&quot;: true
        }
      }]
      ]
    };
  };
  </code></pre>
  <p>Which is similar to what <a href="https://www.npmjs.com/package/babel-preset-expo" rel="nofollow noreferrer">https://www.npmjs.com/package/babel-preset-expo</a> suggests</p>
  <p>However, I am still getting this error.</p>
  <p>How do I solve this? I had React Native Web working on another computer, but temporarily had to move computers, and I am having quite a bit of trouble configuring it to work again.</p>
  <p>If it helps, it seems to be related to a specific module I am using:</p>
  <pre><code>E:/MyProjectOfficial/Frontend/MyProjectFrontendExpo/node_modules/react-native-calendars/src/dateutils.js:145
  
  &gt; 145 | module.exports = {
    146 |   weekDayNames,
    147 |   sameMonth,
    148 |   sameWeek,
  </code></pre>