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

V3 Upgrade: An error occurred while parsing the WebWorker bundle #13329

Open
devsheva opened this issue Nov 20, 2024 · 0 comments
Open

V3 Upgrade: An error occurred while parsing the WebWorker bundle #13329

devsheva opened this issue Nov 20, 2024 · 0 comments

Comments

@devsheva
Copy link

devsheva commented Nov 20, 2024

mapbox-gl-js version: 3.8.0

browser: Chrome Version 130.0.6723.117

Steps to Trigger Behavior

  1. Upgrade to mapbox-gl v3
  2. Run the application

Link to Demonstration

https://jsbin.com/

Cannot easily provide a reproduction.

The application is a react app with webpack 4 and babel 8.

Expected Behavior

It should render the map after following the V3 migration guide.

Actual Behavior

An error occurred while parsing the WebWorker bundle

Screenshot 2024-11-20 at 17 26 48

This happens when importing with

import mapboxgl from 'mapbox-gl'

If i import with previous transpilation suggestion i get another error.

import mapboxgl from '!mapbox-gl'
./node_modules/mapbox-gl/dist/mapbox-gl.js 34:21870
Module parse failed: Unexpected token (34:21870)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
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

1 participant