react-map-gl
react-map-gl copied to clipboard
An error occurred while parsing the WebWorker bundle
Hi Everybody👋 !
I have an issue on building react-map-gl using Webpack
I've created an application using create-React-App and React-MAP-GL.
When I try to build and run this app in production mode, it gives me this error.
An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/api/#transpiling-v2
Screenshot :

I've read the articles and tried but not fixed.
I think that the main problem is that I am using React-map-gl not Mapbox-gl-js.
Can you please let me know how to fix this problem?
#1266