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

Map is not able to be loaded only in production environment #3268

Closed
wongpeterhy opened this issue Oct 24, 2023 · 1 comment
Closed

Map is not able to be loaded only in production environment #3268

wongpeterhy opened this issue Oct 24, 2023 · 1 comment

Comments

@wongpeterhy
Copy link

wongpeterhy commented Oct 24, 2023

maplibre-gl version:3.5.1
browser: Chrome Version 118.0.5993.89

First of all, really sorry that I am not able to provide any codesandbox for reproduce this issue.
My code actually work fine in local environment, however, after production build I encounter this error.

In local environment it's working fine..
image

Seems like sprite.json and tiles.json is loaded successfully without any error

Does anyone meet this error before?

Uncaught ReferenceError: y is not defined
at 9b2f47a5-8394-476f-a6b7-438a3f2b4f98:1:5756
at 9b2f47a5-8394-476f-a6b7-438a3f2b4f98:1:356813
(anonymous) @ 9b2f47a5-8394-476f-a6b7-438a3f2b4f98:1
(anonymous) @ 9b2f47a5-8394-476f-a6b7-438a3f2b4f98:1

image

@wongpeterhy
Copy link
Author

Found that there're already a closed issue to solve this.

#1011

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