title: How do I fix a Module Federation error when trying to use it in Next.js 10 project?
body: <p>I am trying to develop microfrontends in NextJs 10 project as described by <a href="https://gist.github.com/jherr/dd10bc34448590a2661a0c6acbcc7e8a/revisions" rel="nofollow noreferrer">https://gist.github.com/jherr/dd10bc34448590a2661a0c6acbcc7e8a/revisions</a>. But when I try to run it, both in my project and in the one with the example <a href="https://github.com/jherr/wp5-nextjs-10.git" rel="nofollow noreferrer">https://github.com/jherr/wp5-nextjs-10.git</a> I get the following error: <code>Error: Module Federation only works with Webpack 5</code></p>
  <p><a href="https://i.stack.imgur.com/9TLBo.png" rel="nofollow noreferrer">Error: Module Federation only works with Webpack 5</a></p>
  <p>I am using Windows 10 and my Node version is v14.12.0</p>
  <p>How can I fix this?</p>