`turbopack.root` doesnt do anything
Answered
Clumber Spaniel posted this in #help-forum
Clumber SpanielOP
hi, i have a monorepo w/ bun and i have root project and nextjs subrpoject coordinated by workspace. my next.config.ts looks like this:
the thing is, not matter how i adjust
const nextConfig: NextConfig = {
reactCompiler: true,
outputFileTracingRoot: path.join(__dirname),
cacheComponents: false,
output: "standalone",
typescript: {
ignoreBuildErrors: true
},
turbopack: {
root: "/tmp"
}
};the thing is, not matter how i adjust
root, it never changes and next keeps crashing, any idea why?Answered by Clumber Spaniel
I already fixed this 😅 the issue was thst turbo pack root has to be same as outputfiletracing root, so after fixing that it works
5 Replies
@Clumber Spaniel hi, i have a monorepo w/ bun and i have root project and nextjs subrpoject coordinated by workspace. my next.config.ts looks like this:
ts
const nextConfig: NextConfig = {
reactCompiler: true,
outputFileTracingRoot: path.join(__dirname),
cacheComponents: false,
output: "standalone",
typescript: {
ignoreBuildErrors: true
},
turbopack: {
root: "/tmp"
}
};
the thing is, not matter how i adjust `root`, it never changes and next keeps crashing, any idea why?
what crash are you facing? and is this with bun runtime or still node?
@riský what crash are you facing? and is this with bun runtime or still node?
Clumber SpanielOP
I already fixed this 😅 the issue was thst turbo pack root has to be same as outputfiletracing root, so after fixing that it works
Answer
Clumber SpanielOP
I had to look to the nextjs source code tho
ah lol
glad you got it working tho!