Open bbaervoets opened 3 years ago
Hi @bbaervoets, there is an issue with @mapbox/mapbox-gl-geocoder
that is causing this. I believe for now you can get around the issue by using Next dynamic imports https://nextjs.org/docs/advanced-features/dynamic-import. See this issue for more details https://github.com/SamSamskies/react-map-gl-geocoder/issues/36. I have an open PR with @mapbox/mapbox-gl-geocoder
to fix the issue. Feel free to give the PR a +1 https://github.com/mapbox/mapbox-gl-geocoder/pull/403 😀.
Hi,
I'm trying to use react-map-gl-geocoder in my Next.js application. The mapbox-gl-geocoder appears on my screen, but I can't see the geocoder. Nonetheless, the geocoder appears in my react dev tools. I tried out many things before it occured to me that Next.js is probably causing this problem. The code below is from one of the examples. Does anyone have experience with react-map-gl-geocoder + Next.js ?