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

self.worker not a constructor #13378

Open
shaneedwardtaylor opened this issue Jan 2, 2025 · 1 comment
Open

self.worker not a constructor #13378

shaneedwardtaylor opened this issue Jan 2, 2025 · 1 comment

Comments

@shaneedwardtaylor
Copy link

has anyone else reported the map not loading after upgrading from v3.1.0 ? Anything below that version loads just fine. As soon as I upgrade to any version after that, I get the following js error:

self.worker is not a constructor

web workers work fine. nothing has been changed except for the version number.

Enqueing scripts/css via php in Wordpress...

@underoot
Copy link
Member

underoot commented Jan 2, 2025

Hey, @shaneedwardtaylor! Thank you for your report!

Nope, I've searched in the public issues of GL JS and haven't found anything similar. Could you provide in some way minimal reproduction steps to check it from our side? Is it possible to have the same issue with fresh Wordpress copy if you just add scripts. Do you use scripts from CDN like https://api.mapbox.com/mapbox-gl-js/v3.1.0/mapbox-gl.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants