Next.js Discord

Discord Forum

[TurbopackInternalError]: Next.js package not found

Unanswered
Jumbo flying squid posted this in #help-forum
Open in Discord
Avatar
Jumbo flying squidOP
Fresh next js projects hit this issue when running pnpm dev. I've repoed this multiple times with fresh nextjs projects. I've provided my settings below. Now, If i drop the turbopack flag on the next dev command, I get this issue "Error: invariant expected layout router to be mounted"

next app settings:
√ Would you like to use TypeScript? ... No / Yes
√ Would you like to use ESLint? ... No / Yes
√ Would you like to use Tailwind CSS? ... No / Yes
√ Would you like your code inside a src/ directory? ... No / Yes
√ Would you like to use App Router? (recommended) ... No / Yes
√ Would you like to use Turbopack for next dev? ... No / Yes
√ Would you like to customize the import alias (@/* by default)? ... No / Yes

1 Reply

Avatar
Jumbo flying squidOP
I also tried a fresh install without the turbopack option and get the invariant error