fix(nextjs): suppress Turbopack node:crypto export-star warning
Next.js 16 exits with code 1 when Turbopack encounters unhandled warnings. The node:crypto CJS module triggers an 'unexpected export *' warning through the image-proxy route because node:crypto exposes its API as CJS exports only available at runtime. The named imports used at runtime are fine — this is a static analysis limitation in Turbopack's ESM/CJS interop detection. Suppress via ignoreIssue (same pattern already used for the NFT list warning) until upstream resolves the detection in vercel/next.js.
This commit is contained in:
1 file changed
+7
@@ -42,6 +42,13 @@ const nextConfig: NextConfig = {
|
|||||||
path: "**/*",
|
path: "**/*",
|
||||||
title: "Encountered unexpected file in NFT list",
|
title: "Encountered unexpected file in NFT list",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// node:crypto is CJS; `export *` from it triggers a Turbopack warning
|
||||||
|
// that exits 1 in Next.js 16. Named imports in image-proxy are fine at
|
||||||
|
// runtime — suppress until upstream resolves the ESM/CJS detection.
|
||||||
|
path: "**/*",
|
||||||
|
title: "unexpected export *",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],
|
transpilePackages: ["@homarr/ui", "@homarr/notifications", "@homarr/modals", "@homarr/spotlight", "@homarr/widgets"],
|
||||||
|
|||||||
Reference in new issue
Block a user