You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importdynamicfrom'next/dynamic';importtype{NextPage}from'next';constClientSideComponentWithImage=dynamic(async()=>awaitimport('./ComponentWithImage'),{ssr: false},// The problem);exportconstPage: NextPage=()=>(<main><h1>Title</h1><ClientSideComponentWithImage/></main>);
The .next/custom-optimized-images.nd.json manifest isn't populated with the dynamic images during next build.
The text was updated successfully, but these errors were encountered:
Images within client-side-only loaded components aren’t optimized. For example:
✅ This works
❌ This doesn't work
The .next/custom-optimized-images.nd.json manifest isn't populated with the dynamic images during
next build
.The text was updated successfully, but these errors were encountered: