mapbox / mapbox/mapbox-gl-js

self.worker not a constructor

Open
#13,378 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

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...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are identified in the report. First reproduce the map-loading failure in the reported WordPress setup while comparing v3.1.0 with later versions, then trace the browser's “self.worker is not a constructor” error; done means the map loads without that error after upgrading.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, typescript, wordpress
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.