Turbopack Error: Next.js package not found #84101
Replies: 2 comments
-
Error [TurbopackInternalError]: Next.js package not found Debug info:
|
Beta Was this translation helpful? Give feedback.
-
changed the next.config.ts to use a more robust way to get the __dirname and output file path. I created a proper __dirname using fileURLToPath(import.meta.url) for ES module compatibility and changed outputFileTracingRoot to point to the monorepo root using path.join(__dirname, "../.."). This worked for me: import type { NextConfig } from "next"; const __filename = fileURLToPath(import.meta.url); const nextConfig: NextConfig = { export default nextConfig; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
v15.5.2-3-gdb56d7759
Next.js version:
0.0.0
Error message:
Beta Was this translation helpful? Give feedback.
All reactions