Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with NextJS and SSR. #168

Open
bnbon opened this issue Oct 2, 2022 · 3 comments
Open

Issues with NextJS and SSR. #168

bnbon opened this issue Oct 2, 2022 · 3 comments

Comments

@bnbon
Copy link

bnbon commented Oct 2, 2022

I am using the latest version of pigeon-maps with the latest version of nextjs on a page that's rendered server side, and I get

Warning: Prop `style` did not match. Server: "position:absolute;transform:translate(-15px, 117px);pointer-events:none;cursor:pointer" Client: "position:absolute;transform:translate(-15px, 117px);filter:;pointer-events:none;cursor:pointer"

Does anyone else get this issue, and ideally does anyone have a fix? I seem to lose the overlay and the map tiles only appear if I change the zoom level client side with the mousewheel/zoommarker.

@Neophen
Copy link

Neophen commented Oct 6, 2022

To not waste time the change is an additional property in client-rendered style:

filter:

A temporary fix is to add:

  style={{ filter: "none" }}

on <Marker /> Components

I've done a PR to fix this Link to pr

@bnbon
Copy link
Author

bnbon commented Oct 9, 2022

@Neophen Good spot :)

@Mood93
Copy link

Mood93 commented Jul 12, 2023

Hello! Great project! I am having this issue on NextJS 13.4.7 (pages directory) using pigeon-maps 0.21.3.
I have tried the fix above to no avail, any ideas? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants