How do add turbo to existing Next.js project(appDir)?
Unanswered
nkilm posted this in #help-forum
nkilmOP
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
nkilmOP
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
nkilmOP
I did try the steps mentioned there, but it's not working
@nkilm I did try the steps mentioned there, but it's not working
any specific error?
nkilmOP
can you show me your turbo config
nkilmOP
I saw turbo in one of the OS projects and love how fast it complies
@nkilm I saw turbo in one of the OS projects and love how fast it complies
well it caches stuff
nkilmOP
@nkilm Click to see attachment
well there's no dev script here
add it in
pipeline@nkilm Click to see attachment
nkilmOP
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
nkilmOP
First time it worked but later it didn't
@nkilm Oh well it's not there official docs(the one you shared)
yeah I just saw that
nkilmOP
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
@@ts-ignore you can read docs of it to learn what thing does what
nkilmOP
I was asking for your suggestions
@nkilm It didnt work
this is quite weird
let me see
@Siamese Crocodile `next dev --turbo`?
well that enables turbopack
nkilmOP
@@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
nkilmOP
whichever compiles fast lol
@nkilm do
turbo dev@nkilm whichever compiles fast lol
well turbopack is quite unstable
@Siamese Crocodile `next dev --turbo`?
nkilmOP
this does not work
@@ts-ignore well turbopack is quite unstable
nkilmOP
Okay, but it works quite well with other repos I've seen and the tech stack is similar. Eg: https://github.com/openstatusHQ/openstatus
@nkilm Okay, but it works quite well with other repos I've seen and the tech stack is similar. Eg: https://github.com/openstatusHQ/openstatus
turborepo and turbopack are 2 very different things
nkilmOP
Ah yes I was wondering if I can have that speed in my nextjs projects
@nkilm Ah yes I was wondering if I can have that speed in my nextjs projects
try running
turbo devnkilmOP
Nope same error
@nkilm Nope same error
remove the dev script from turbo.json
nkilmOP
that also didn't work
@nkilm that also didn't work
same error?
nkilmOP
yeah