`turbopack.root` doesnt do anything
Answered
aa55h posted this in #help-forum
aa55hOP
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 aa55h
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
@aa55h 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?
aa55hOP
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
aa55hOP
I had to look to the nextjs source code tho
ah lol
glad you got it working tho!