You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thanks for contributing.
open in iPad error : An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel;
then add in my project:
import mapboxgl from 'mapbox-gl/dist/mapbox-gl';
import MapboxWorker from 'mapbox-gl/dist/mapbox-gl-csp-worker';
mapboxgl.workerClass = MapboxWorker;
will error Fr.workerClass is not a constructor
Thanks
The text was updated successfully, but these errors were encountered:
I had the same issue but i managed to fix it by adding the worker loader to the webpack config. I'm using an ejected Create React App, this is what I did:
Hello! Thanks for contributing.
open in iPad error : An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel;
then add in my project:
import mapboxgl from 'mapbox-gl/dist/mapbox-gl';
import MapboxWorker from 'mapbox-gl/dist/mapbox-gl-csp-worker';
mapboxgl.workerClass = MapboxWorker;
will error Fr.workerClass is not a constructor
Thanks
The text was updated successfully, but these errors were encountered: