Closed teddybee closed 5 hours ago
Sorry, the root cause was this part of code on the page:
useLayoutEffect(() => {
if (ref.current) {
setWidth(ref.current.clientWidth)
setHeight(ref.current.clientHeight)
}
}, [])
The component itself is working with constant width and height
Describe the bug A clear and concise description of what the bug is. I ported my app to NextJS 15.03 and the ImageMapper component shows this error: NextJS 15 error: Cannot read properties of undefined (reading 'length')
To Reproduce Steps to reproduce the behavior:
Error Stack A Error Stack of your error
Expected behavior A clear and concise description of what you expected to happen. Run without error and show the map.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.