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

Failed to execute 'createObjectURL' on 'URL' #3291

Closed
jaapster opened this issue Oct 4, 2016 · 5 comments
Closed

Failed to execute 'createObjectURL' on 'URL' #3291

jaapster opened this issue Oct 4, 2016 · 5 comments

Comments

@jaapster
Copy link

jaapster commented Oct 4, 2016

Hi,

I just installed 0.25.0 and get the following error:

web_worker.js:5 Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.

That's js/util/browser/web_worker.js.

This does not happen in 0.24.0.

Maybe related to #3239?

I'm building my app with webpack.

Any ideas about how to tackle this?

@jaapster
Copy link
Author

jaapster commented Oct 4, 2016

If I change the main property in the mapbox-gl package.json from js/mapbox-gl.js to dist/mapbox-gl.js things work as expected.

@jfirebaugh
Copy link
Contributor

Can you create a self-contained example on https://jsfiddle.net/ that demonstrates the issue?

@jfirebaugh
Copy link
Contributor

If I change the main property in the mapbox-gl package.json from js/mapbox-gl.js to dist/mapbox-gl.js things work as expected.

Oh, yes, you need to use the dist version for Webpack. See https://github.com/mapbox/mapbox-gl-js#using-mapbox-gl-js-with-other-module-systems

@mmperryman
Copy link

We still experience this problem with 0.26.0.

@jfirebaugh
Copy link
Contributor

@MattP88 Please open a new issue with a self-contained https://jsfiddle.net/ example.

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

3 participants