Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Source Link
Marco Mesen

I have the same issue, working with a rush monorepo, configuring ui-package and building the apps using nextjs.

The solutions was add the follow code on package.json

"resolutions": {
  "react": "17.0.1", // verificate your react version
  "react-dom": "17.0.1"
}

See more here: https://github.com/vercel/next.js/issues/9022#issuecomment-728688452

lang-js