masotime / react-leaflet-universal

Painlessly use react-mapbox in universal apps
53 stars 17 forks source link

react-leaflet-universal breaks with react-leaflet 3 #28

Open gabrielht opened 3 years ago

gabrielht commented 3 years ago

On a new project i was using react-leaflet 3 and react leaflet universal on next.js got a immediate `Check the render method ofLeafletUnivMap``` when trying to use

It seems react-leaflet-universal breaks with some specific versions of react-leaflet itself

package.json

"react": "^17.0.1", "react-dom": "^17.0.1", "react-leaflet": "^3.0.2", "react-leaflet-markercluster": "^3.0.0-rc1", "react-leaflet-universal": "^2.2.1",

Workarounds

reverting to "react-leaflet": "^2.8.0" fixes the issue

Screenshots

Screenshot from 2020-11-27 12-44-12

System

joshbedo commented 2 years ago

Hmm running into the same issue but the workaround doesn't seem to fix it.