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

mapboxgl get "Uncaught ReferenceError: g is not defined" in npm run build mode #10168

Closed
linze99 opened this issue Dec 9, 2020 · 1 comment
Closed

Comments

@linze99
Copy link

linze99 commented Dec 9, 2020

mapbox-gl-js version:
2.0.0
browser:
Chrome

Steps to Trigger Behavior

  1. npm init react-app test
    npm install --save mapbox-gl
    create a div container , and new a mapboxgl object.
  2. npm start
    it all goes well
  3. when npm run build,and published under tomcat
    i got a error:
    e76d7262-a227-4481-baf2-011636f4a47e:1 Uncaught ReferenceError: g is not defined

Link to Demonstration

https://jsbin.com/

Expected Behavior

Actual Behavior

@mourner
Copy link
Member

mourner commented Dec 9, 2020

Same issue as #10173 — let's keep the discussion along with the current workaround there.

@mourner mourner closed this as completed Dec 9, 2020
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

2 participants