Next.js Discord

Discord Forum

`turbopack.root` doesnt do anything

Answered
Clumber Spaniel posted this in #help-forum
Open in Discord
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:
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
View full answer

5 Replies

@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!