8.23.2
@comet/site-nextjs@8.23.2
Patch Changes
-
fd656c6: Fix
PixelImageBlockandImagefailing to render in Next.js Pages Router withError: Element type is invalid ... but got: object@comet/site-nextjsis published as ESM ("type": "module") and the components used a default import ofnext/image(CJS). Under Next.js Pages Router the server bundler keeps node_modules ESM packages as Node-style externals, which applies Node-style ESM↔CJS interop:import NextImage from "next/image"yields the entire module-namespace object ({ default, getImageProps, __esModule: true }) instead of the component. The default import is now unwrapped at module evaluation time so the components work under both bundler-style and Node-style interop.