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

azure map not loading in production with subscription key #186

Closed
savi-react opened this issue Nov 6, 2023 · 9 comments
Closed

azure map not loading in production with subscription key #186

savi-react opened this issue Nov 6, 2023 · 9 comments

Comments

@savi-react
Copy link

No description provided.

@yulinscottkang
Copy link
Contributor

To assist in identifying the problem, please provide a code snippet that can reproduce this issue. It would be helpful if you can also include the http status code and the response body of the failing APIs.

@savi-react
Copy link
Author

savi-react commented Nov 8, 2023

@yulinscottkang getting these error while deploying to production
isue

@yulinscottkang
Copy link
Contributor

Can you click on the line number and show what v is? Also, based on the warning, it seems that you're referencing atlas.min.js separately. It should also be bundled with your JS files.

@yulinscottkang
Copy link
Contributor

[email protected] now includes native support for ESM, which works more seamlessly with bundlers and minifiers. You might want to give it a try and see if it makes any difference.

@ashishkabuni
Copy link

ashishkabuni commented Dec 18, 2023

I am also facing same issue not sure why we are getting this issue on live environment. In local it is working properly.

I am using [email protected] @yulinscottkang

image image

@Joxterian
Copy link

Joxterian commented Jan 2, 2024

Hello, I'm using [email protected] and [email protected] and have this error:
image
image

Using the react-scripts command it works perfectly:
image

But once it's compiled and deployed in the server I get the previous errors and the map, appears but empty:
image

This is my code for the map:
image
image
image

@yulinscottkang
Copy link
Contributor

@ashishkabuni, @Joxterian, can you let me know which minifier is being used and share the configurations for the minifier?

@alvaradojl
Copy link

Seems the same issue as #185

@yulinscottkang
Copy link
Contributor

See #193 (comment) for solution.

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

5 participants