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 not loading #185

Closed
atulsh1983 opened this issue Nov 2, 2023 · 7 comments
Closed

Map not loading #185

atulsh1983 opened this issue Nov 2, 2023 · 7 comments

Comments

@atulsh1983
Copy link

Have installed azure-maps-control npm package

This run perfectly on my localhost, but when same code deployed on prod

it gives error:

Uncaught ReferenceError: b is not defined

error in blob files JS

@yulinscottkang
Copy link
Contributor

Without seeing your specific code and the context in which the error occurs, it's challenging to provide a more specific solution.

Make sure that you have bundled all the dependencies packages correctly in your production code. Check if there are any environmental differences that might be causing the error.

Use browser development tools to inspect the error in the production environment. This can help to pinpoint the exact location and what is undefined.

@savi-react
Copy link

Have installed azure-maps-control npm package

This run perfectly on my localhost, but when same code deployed on prod

it gives error:

Uncaught ReferenceError: b is not defined

error in blob files JS
same issue facing
issue

@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.

@sunallam
Copy link

Hi @yulinscottkang ,
Do we have any work around for this i am also facing the same issue.
Updated the dependency with mentioned version but no luck on this

"azure-maps-control": "^3.0.3",
"react-azure-maps": "^1.0.0",
"react": "^18.2.0",
"react-router-dom": "^6.17.0",
"react-scripts": "^5.0.1",

The above are the dependency versions that i have
Thanks

@yulinscottkang
Copy link
Contributor

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

@alvaradojl
Copy link

I have the same issue with version "azure-maps-control": "^3.1.2",
as @sunallam I'm using create-react-app.
@yulinscottkang do you know any workaround?

@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