Use next/legacy/image for the old next/image props
ProprietaryImports next/legacy/image instead of next/image in files that pass layout, objectFit, objectPosition, lazyBoundary or lazyRoot, which the next/image of Next.js 13 does not have. Other files stay on next/image, the new component, whose markup and styles differ from Next.js 12 even without these props. An import that also names a value from next/image is left alone.
io. moderne. nextjs.13. next-image-to-legacy-imagemod run . --recipe= io. moderne. nextjs.13. next-image-to-legacy-imageInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.