title: Attempted import error: '__exports' is not exported
body: <p>I have created a react typescript component library using rollup. My rollup config file looks like</p>
  <pre><code>import commonjs from &quot;@rollup/plugin-commonjs&quot;;
  import resolve from &quot;@rollup/plugin-node-resolve&quot;;
  import peerDepsExternal from &quot;rollup-plugin-peer-deps-external&quot;;
  import typescript from &quot;rollup-plugin-typescript2&quot;;
  import svg from 'rollup-plugin-svg';
  import scss from 'rollup-plugin-scss';
  import postcss from 'rollup-plugin-postcss';
  import babel from 'rollup-plugin-babel';
  import postcssUrl from 'postcss-url';
  import autoprefixer from 'autoprefixer';
  import packageJson from &quot;./package.json&quot;;
  
  const externals = Object.keys(packageJson.peerDependencies || {});
  
  
  export default {
      input: &quot;./src/index.ts&quot;,
      output: [
          {
              file: packageJson.main,
              format: &quot;cjs&quot;,
              sourcemap: true
          },
          {
              dir: packageJson.moduleDir,
              format: 'esm',
              preserveModules: true,
              sourcemap: true,
          }
      ],
      plugins: [
          babel({}),
          peerDepsExternal(),
          resolve(),
          commonjs(),
          typescript({useTsconfigDeclarationDir: true}),
          svg(),
          scss(),
          postcss({
              plugibs: [autoprefixer()],
              minimize: true,
              modules: {
                  generateScopedName: &quot;[hash:base64:5]&quot;
              },
              plugins: [
                  postcssUrl({
                      url: &quot;inline&quot;
                  })
              ]
          }),
  
      ],
      external: externals
  };
  </code></pre>
  <p>I added the library inside my react project, but when I do so I am getting a following error.</p>
  <blockquote>
  <p>Attempted import error: '__exports' is not exported from
  '../../../../../_virtual/event-stack.development.js_commonjs-exports'
  (imported as 'eventStack_development').</p>
  </blockquote>
  <p>Any suggestion, how can I remove this error?</p>