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

gmpx-api-loader is being loaded twice #51

Open
mattcanty opened this issue Sep 29, 2024 · 0 comments
Open

gmpx-api-loader is being loaded twice #51

mattcanty opened this issue Sep 29, 2024 · 0 comments

Comments

@mattcanty
Copy link

mattcanty commented Sep 29, 2024

I wonder if someone experienced with Astro might be able to help me with an issue I have been having using this template.

No matter which way I try to add in a Map using Google Maps Javascript API, I get this issue after adding <gpmx-api-loader>...

image

Note that when a page is refreshed the issue goes away and I can get a map to render perfectly.

I've reduced the changes to the codebase to a minimum to show the root cause of the issue:

https://github.com/Control-Alt-Repeat/website/blob/40f16eda4366eefd5c44bbaa40b97fccafec867a/src/layouts/Base.astro#L186-L187

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

1 participant