I get the error 'ReferenceError: dynamic is not defined'
This was after I changed the required package from react-mapbox-gl to react-map-gl (since that is what you import from).
Thanks. In the end I removed react-mapbox-gl which I found restrictive and just used mapbox-gl itself. No issues so far and easy to make use of everything mapbox offers.
I get the error 'ReferenceError: dynamic is not defined'
This was after I changed the required package from react-mapbox-gl to react-map-gl (since that is what you import from).
'ReferenceError: dynamic is not defined' is because u need to import dynamic from
"next/dynamic"
Thanks. In the end I removed
react-mapbox-gl
which I found restrictive and just usedmapbox-gl
itself. No issues so far and easy to make use of everything mapbox offers.Good to know that, buddy 👍👍