Next.js Discord

Discord Forum

Turborepo Starter Bug

Answered
African Slender-snouted Crocodil… posted this in #help-forum
Open in Discord
African Slender-snouted CrocodileOP
Hi, I used the pnpm dlx create-turbo@latest then cd into the project, then run pnpm dev, then get the following bug -
[Error [TurbopackInternalError]: Next.js package not found

I am on Windows 11.

This is not the first time I've seen this error - I usually just rimraf the node_modules and do pnpm i and everything works again, but this time even this doesn't seem to fix it.

I am looking to migrate my SaaS into two seperate apps -> marketing and app. If Turborepo doesn't work, I'll try Nx.
Answered by Anay-208 | Ping in replies
I faced similar bugs with native windows a lot, like random errors which makes no sense, but it works perfectly fine in wsl or github codespaces
View full answer

17 Replies

African Slender-snouted CrocodileOP
Update - WSL seems to work. Native Windows has this bug.
@African Slender-snouted Crocodile Update - WSL seems to work. Native Windows has this bug.
I faced similar bugs with native windows a lot, like random errors which makes no sense, but it works perfectly fine in wsl or github codespaces
Answer
@Anay-208 | Ping in replies I faced similar bugs with native windows a lot, like random errors which makes no sense, but it works perfectly fine in wsl or github codespaces
African Slender-snouted CrocodileOP
Yeah seems to be the case. I'm in the middle of converting a Next.js app to a Tureborepo, and this just adds to the trouble. 😅

PS: Do you have any experience w/ it?
@Anay-208 | Ping in replies Can you also mark solution?
African Slender-snouted CrocodileOP
Sure
@Anay-208 | Ping in replies You can ask here only
African Slender-snouted CrocodileOP
Alright. When I get back to work, and have to finish this, I'll send a message here.
@Anay-208 | Ping in replies You can ask here only
African Slender-snouted CrocodileOP
Hi, so essentially my project is at research-app, so before creating the turborepo, I do mv ./** ./.** ./temp123, then do pnpm dlx create-turbo@latest, and type . for ? Where would you like to create your Turborepo?, however, it gives this error: research-app (/home/user/coding_projects/research-app) has 1 conflicting file - please try a different location
It is actually to create a app, for now, can you just like rename to it research-app-old, like the old app, and create a new one with research-app
African Slender-snouted CrocodileOP
I'd like to preserve the git history for the repo
African Slender-snouted CrocodileOP
Wdym?
add it to existing repo
African Slender-snouted CrocodileOP
Ah, I see. I was trying to avoid all the manual work of adding the files myself.