title: Conflict between styled-components and Webpack 5 Federated Modules (Invalid hook call)
body: <p>Been trying out Webpack's 5 Module Federation and came upon this problem. Tried many approaches but none seem to work. Basically when I try to use <code>styled-components</code> on a federated module, I get React's <code>Invalid hook call</code> error.</p>
  <p>Here is a repository which tries to reproduce the problem:</p>
  <ul>
  <li><a href="https://github.com/oncet/federated-modules-styled-components" rel="nofollow noreferrer">https://github.com/oncet/federated-modules-styled-components</a></li>
  </ul>
  <p>I wonder if I'm missing something or if this is some kind of bug.</p>