Next.js Discord

Discord Forum

How do add turbo to existing Next.js project(appDir)?

Unanswered
nkilm posted this in #help-forum
Open in Discord
I have a simple nextjs project initialized. At present, the compilation is done using next dev. Now what are the steps needed to add turbo to this repository? Any help would be appreciated!

48 Replies

It is packed with information, I want something light.
@nkilm It is packed with information, I want something light.
well it only has steps which you need to get it working
idk what do you mean by light
I did try the steps mentioned there, but it's not working
can you show me your turbo config
I saw turbo in one of the OS projects and love how fast it complies
@@ts-ignore well it caches stuff
yeah
@nkilm Click to see attachment
well there's no dev script here
add it in pipeline
@nkilm Click to see attachment
Oh well it's not there official docs(the one you shared)
{
"dev":{
  "cache":false
}
}
@@ts-ignore json { "dev":{ "cache":false } }
sorry for bad formatting
First time it worked but later it didn't
Okay, wait I'll try.
what other things might be useful to add here?
@nkilm what other things might be useful to add here?
you can read docs of it to learn what thing does what
It didnt work
@@ts-ignore you can read docs of it to learn what thing does what
I was asking for your suggestions
@nkilm It didnt work
this is quite weird
let me see
Project structure -
@Siamese Crocodile `next dev --turbo`?
well that enables turbopack
@@ts-ignore well that enables turbopack
Siamese Crocodile
isn't that the goal?
he needs turborepo not turbopack
Siamese Crocodile
oh mb
@@ts-ignore he needs turborepo not turbopack
whichever compiles fast lol
@nkilm do turbo dev
@nkilm whichever compiles fast lol
well turbopack is quite unstable
@Siamese Crocodile `next dev --turbo`?
this does not work
@@ts-ignore well turbopack is quite unstable
Okay, but it works quite well with other repos I've seen and the tech stack is similar. Eg: https://github.com/openstatusHQ/openstatus
Ah yes I was wondering if I can have that speed in my nextjs projects
Nope same error
@nkilm Nope same error
remove the dev script from turbo.json
that also didn't work
@nkilm that also didn't work
same error?
yeah