Next.js Discord

Discord Forum

Minified React error #31 with clean install

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Avatar
Asian black bearOP
Hi there!,

when I create a new next.js project using npx create-next-app@latest everything works fine (dev & build).

However, when putting the created project inside a new folder of my monorepo I get the following error when running build: (dev works fine)

Any idea why this could be the case?
Image

1 Reply

Avatar
Asian black bearOP
It seems to be this bug: https://github.com/vercel/next.js/issues/45258 but no idea how to fix it as I am using normal npm workspaces