Next.js Discord

Discord Forum

google-map-react does not work in dev

Unanswered
Korat posted this in #help-forum
Open in Discord
KoratOP
I posted an Discussion about this here but have not gotten a response: https://github.com/vercel/next.js/discussions/62401

Basically, the map markers stay at their coordinates in production, but in dev there's something happening with Next's Fast Refresh that's making the map markers not stay in their correct positions when moving the map around.

Does anybody know a way around this? Right now I have to run a npm run build then npm run start to work on my maps.

Thanks.

0 Replies