How do I fix a Module Federation error when trying to use it in Next.js 10 project?

Viewed 1427
1 Answers

Module federation is a new feature of webpack 5. The error message has to be taken quite literally. You have to upgrade your webpack over your package manager (like yarn or npm) to use it. To help with that, webpack offers migration articles that explain what has to be changed when upgrading (e.g. v3-v4 and v4-v5). You probably have webpack globally installed and the version is too old.

Related