-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
react-map-gl with Mapbox v2 fails #1284
Comments
duplicate of #1266 |
Editing package.json worked for me. I'm using maplibre-gl
check this: https://docs.mapbox.com/mapbox-gl-js/guides/install/#targeting-transpilation-to-es6-with-browserslist |
Thank you! This also worked for me. |
Indeed, also works for me using
|
After running a Webpack build (with
create-react-app
), I get the following error in the browser:This is a known issue with
mapbox-gl
using the recent Mapbox v2 release, which can be resolved for the time being using:However, when I migrated from
mapbox-gl
toreact-map-gl
, the error reappeared and the fixes suggested here don't seem to work.react-map-gl
works just fine when run locally without building.The text was updated successfully, but these errors were encountered: