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

[Bug] Using deck.gl with Create React App #6896

Closed
2 of 6 tasks
abouroubi opened this issue May 9, 2022 · 1 comment
Closed
2 of 6 tasks

[Bug] Using deck.gl with Create React App #6896

abouroubi opened this issue May 9, 2022 · 1 comment

Comments

@abouroubi
Copy link

Description

I'm trying to use deck.gl with CRA 5 and Mapbox, unfortunately Mapbox JS has an issue with webworker.

I tried the solutions found in Mapbox docs: https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling
Updating the borwserlist is the only solution that I could use, because CRA don't let the user update webpack config.
This solution didn't work with deck.gl, I wonder if mapbox is imported by dekc.gl in a specific way that prevent this solution from working ? Or if anybody found a solution for this issue.

Thanks

Flavors

  • React
  • Python/Jupyter notebook
  • MapboxLayer
  • GoogleMapsOverlay
  • CartoLayer
  • DeckLayer/DeckRenderer for ArcGIS

Expected Behavior

No response

Steps to Reproduce

The codepen can't reproduce the bug because we need to use CRA.

Environment

  • Framework version: 8.6.0
  • Browser: Firefox or Chrome
  • OS: Mac OS

Logs

No response

@abouroubi abouroubi added the bug label May 9, 2022
@Pessimistress
Copy link
Collaborator

deck.gl does not reference mapbox-gl. Please refer to visgl/react-map-gl#1266 if you are using react-map-gl.

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