title: Rollup error: could not load a module from @babel/runtime when importing a Material-UI component
body: <p>I'm trying to compile this <code>index.js</code> file using rollup:</p>
  <pre class="lang-js prettyprint-override"><code>import React from &quot;react&quot;;
  import ReactDOM from &quot;react-dom&quot;;
  import Grid from &quot;@material-ui/core/Grid&quot;;
  
  ReactDOM.render(
      &lt;React.StrictMode&gt;
          &lt;Grid container&gt;
          &lt;/Grid&gt;
      &lt;/React.StrictMode&gt;,
      document.getElementById('root')
  );
  
  </code></pre>
  <p><code>rollup.config.js</code>:</p>
  <pre class="lang-js prettyprint-override"><code>import { nodeResolve } from '@rollup/plugin-node-resolve';
  import babel from '@rollup/plugin-babel';
  import commonjs from '@rollup/plugin-commonjs';
  
  export default {
      input: 'index.js',
      output: {
          file: 'dist/bundle.js',
          format: 'iife'
      },
      plugins: [
          nodeResolve(),
          babel({ babelHelpers: 'bundled', exclude: /node_modules/ }),
          commonjs(),
      ],
  };
  </code></pre>
  <p><code>babel.config.json</code>:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;presets&quot;: [
          &quot;@babel/preset-react&quot;,
          &quot;@babel/preset-env&quot;
      ]
  }
  </code></pre>
  <p>Now, when I run <code>npx rollup -c</code> i get this error:</p>
  <blockquote>
  <p>[!] Error: Could not load /home/recursive-beast/Desktop/repositories/myproject/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties (imported by node_modules/@material-ui/core/esm/Grid/Grid.js): ENOENT: no such file or directory, open '/home/recursive-beast/Desktop/repositories/myproject/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties'</p>
  </blockquote>
  <p>This is unexpected because <code>@babel/runtime</code> is a dependency of <code>@material-ui/core</code>, and I already checked that it is installed in the node_modules folder.</p>
  <p>I've been trying to figure out the solution since yesterday without success, so what could be the source of the problem?</p>