title: Loadable/component React SSR throwing error on `getScriptTags`
body: <p>I'm trying to set up SSR in my React app, which is using a private React component library, bundled with Rollup. Everything works fine, the app renders fine on the server, if I don't use <code>@loadable/component</code> and directly import each component. </p>
  
  <p>I followed the tutorial for the SSR set up given <a href="https://www.smooth-code.com/open-source/loadable-components/docs/server-side-rendering/" rel="nofollow noreferrer">here</a> , and I'm using <code>craco</code> to override my CRA's webpack config, to include <code>@loadable/webpack-plugin</code>. I can see the stats file getting generated correctly. For my server webpack config, I'm excluding my component library from the <code>externals</code> option. I wrapped my app with the <code>ChunkExtractorManager</code>, and since I'm using Apollo, I first call <code>getDataFromTree(withmywrappedapp)</code> and then once this returns a result I'm trying to extract the script tags etc.</p>
  
  <p>In server.js</p>
  
  <pre><code>  getDataFromTree(app).then(() =&gt; {
    const content = ReactDOMServer.renderToString();
    const state = client.extract();
    const { helmet } = helmetContext;
    const scriptTags = extractor.getScriptTags(); // This throws an error
    const linkTags = extractor.getLinkTags();
  
    const html = ReactDOMServer.renderToString(
      &lt;Html content={content} helmet={helmet} assets={assets} scriptTags={scriptTags} linkTags={linkTags} state={state} initData={initData}/&gt;,
    );
    if (staticContext.url) {
      return res.redirect(301, staticContext.url);
    }
    res.status(staticContext.status || 200);
    res.send(`&lt;!doctype html&gt;${html}`);
    res.end();
  
  }).....`
  </code></pre>
  
  <p>Unfortunately when I try to run <code>getScriptTags</code> I get this error:</p>
  
  <pre><code> TypeError: (0 , _sharedInternals.getRequiredChunkKey) is not a function
   at ChunkExtractor.getRequiredChunksScriptTag (myapp/node_modules/@loadable/server/lib/ChunkExtractor.js:264:68)
   at ChunkExtractor.getScriptTags (myapp/node_modules/@loadable/server/lib/ChunkExtractor.js:314:36)
   at  myapp/dist/server.js:64058:34
   at &lt;anonymous&gt;
   at process._tickDomainCallback (internal/process/next_tick.js:229:7)
  </code></pre>
  
  <p>`
  Any ideas on how I could fix this or what could possibly be going wrong?</p>