Image fails in Next.js app (Element type is invalid: expected a string) #1751
-
I am struggling getting Image to work with my Next.js application. To narrow it down, I have tried to port over the example from the official documentation:
This is giving me the error below and referring to line 37, where I call Image:
If I remove the Image tag, the map loads just fine. Changing/removing the parameters on the Image tag have no influence. If I load the same images directly via map.loadImage / map.addImage they are loaded just fine, but my issue then is that they are not finished loading when Source/Layer is rendered, and hence generates a warning in the console. Does anyone have any input? I am relatively new to both Next.js, React and the react-map-gl wrapper, so I am hoping that it is something really basic that I am missing in relation to how Next.js renders react-map-gl. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no export called |
Beta Was this translation helpful? Give feedback.
There is no export called
Image
.