Next.js Discord

Discord Forum

Turbopack doesn't work in monorepo

Answered
Spinge Bib Sqorpnts posted this in #help-forum
Open in Discord
Avatar
Hello all! I'm trying to run my app, which is within a monorepo, but whenever I run it with Turbopack, it throws this error:

[Error: Next.js package not found

Debug info:
- Execution of get_entrypoints_with_issues failed
- Execution of Project::entrypoints failed
- Execution of PagesProject::to_endpoint failed
- Execution of PagesStructureItem::new failed
- Execution of FileSystemPath::join failed
- Execution of get_next_package failed
- Next.js package not found] {
  code: 'GenericFailure'
}
Answered by Spinge Bib Sqorpnts
Found the solution:
I'm using pnpm workspaces for the monorepo

I deleted all pnpm-lock.yaml and node_modules folders & files and ran pnpm install at the room of the monorepo
View full answer

1 Reply

Avatar
Found the solution:
I'm using pnpm workspaces for the monorepo

I deleted all pnpm-lock.yaml and node_modules folders & files and ran pnpm install at the room of the monorepo
Answer