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
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
I don't understand why..
Thanks for the help
The text was updated successfully, but these errors were encountered:
Got a similar issue... It's due to a specific behavior from esbuild, see here : evanw/esbuild#1849 (first paragraph of the "New behavior" section)
The fact you did set "type": "module" on your package, make esbuild convert import MarkerClusterGroup from 'react-leaflet-cluster' to an object like { default: MarkerClusterGroup }, and not the MarkerClusterGroup function itself... so you get an error like "got: object"
My code:
My package.json:
The error:
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
I don't understand why..
Thanks for the help
The text was updated successfully, but these errors were encountered: