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
Describe the bug
When building a Next.js 15.1.6 project using next-export-optimize-images with remote-image, the build fails with the error:
TypeError: Cannot read properties of undefined (reading 'imageSizes')
To Reproduce
Use RemoteImage in a page
Run next build
See the error
Expected behavior
The build should succeed without the imageSizes error.
Screenshots
N/A
Desktop (please complete the following information):
OS: Windows 11
Browser: N/A
Version: N/A
Smartphone (please complete the following information):
Device: N/A
OS: N/A
Browser: N/A
Version: N/A
Additional context
Issue appears in a static export scenario. Possibly related to how remote-image checks Next.js config for imageSizes.
[TypeError: Cannot read properties of undefined (reading 'imageSizes')]
Error occurred prerendering page "/update-all-hg-repositories-using-powershell". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of undefined (reading 'imageSizes')
at P:\simonhartcher.com\node_modules\next-export-optimize-images\dist\components\server\remote-image.js:111:42
at renderWithHooks (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4189:18)
at renderElement (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4585:18)
at retryNode (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4871:16)
at renderNodeDestructive (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4689:7)
at finishFunctionComponent (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4230:9)
at renderElement (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4329:7)
at renderElement (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4604:11)
at retryNode (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4871:16)
at renderNodeDestructive (P:\simonhartcher.com\node_modules\react-dom\cjs\react-dom-server.edge.production.js:4689:7)
Export encountered an error on /[pageId]: /update-all-hg-repositories-using-powershell, exiting the build..
The text was updated successfully, but these errors were encountered:
Describe the bug
When building a Next.js 15.1.6 project using next-export-optimize-images with
remote-image
, the build fails with the error:To Reproduce
RemoteImage
in a pagenext build
Expected behavior
The build should succeed without the
imageSizes
error.Screenshots
N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Issue appears in a static export scenario. Possibly related to how
remote-image
checks Next.js config forimageSizes
.The text was updated successfully, but these errors were encountered: