Azure / react-azure-maps

React Wrapper for azure-maps-control
MIT License
52 stars 32 forks source link

azure map not loading in production with subscription key #186

Closed savi-react closed 5 months ago

yulinscottkang commented 11 months ago

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 commented 11 months ago

@yulinscottkang getting these error while deploying to production isue

yulinscottkang commented 11 months ago

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 commented 10 months ago

azure-maps-control@3.0.3 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 commented 9 months ago

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 azure-maps-control@3.0.3 @yulinscottkang

image image
Joxterian commented 9 months ago

Hello, I'm using react-azure-maps@1.0.0 and azure-maps-control@3.0.3 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 commented 8 months ago

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

alvaradojl commented 6 months ago

Seems the same issue as #185

yulinscottkang commented 5 months ago

See https://github.com/Azure/react-azure-maps/issues/193#issuecomment-2046350108 for solution.