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
supercluster not defined in IE - Error #113
Comments
I second this. We are running babel against the package to transform ES6 to ES5 so supercluster can run in IE 11 and IE 10. Also the same issue with KDBush. Can someone please link the issue? |
Supercluster runs fine in IE. There was a breaking change in v5.0 which is described in https://github.com/mapbox/supercluster/releases/tag/v5.0.0 — now you have to use |
@mourner thank you we will give it a try and get back to you. 👍 |
Sorry for the late reply, tried v5 of super cluster in IE 11 and still getting the same error message.
May be is too much to ask, but may i know where to find some sample code that works on IE? a simple example will be very helpful. thank you very much. |
Tried in my personal computer, it was working fine in Edge but IE it not throwing any error but it clustered points are still not showing on the map. |
Same issue here. I created a simple sandbox and it works in Chrome but in IE it throws an error. |
I am getting the exact same error in my project @akirpichnikov - I will second this. When using the package within Angular and Typescript, it seems to use the "module" field in the package.json which points to the src. @mourner, is there any workaround to this? As I have seen it by many other vendors, it is normal to use an es5 version in the module field. As you can see in this issue on Angular-CLI, it is expected that third-parties have the correct format |
Finally, managed to get it work in IE 11. Steps taken:
Manage to get this sample code working in IE 11: Attached the code with this post. Hope this helps Cheers, |
Forgot to upload the sample code. Please find it with this post. |
Please see related discussion here. |
I used to transpile const modulesToTranspile = ['supercluster', 'kdbush'];
// webpack config for babel-loader
include: modulesToTranspile.map(moduleName =>
path.resolve(__dirname, `../../../../node_modules/${moduleName}`)
),
exclude: [new RegExp(`node_modules\/(?!(${modulesToTranspile.join('|')}))`)] |
Hi,
we are using the supercluster library and in IE it is throwing the error supercluster not defined.
In chrome it is working fine.
we are using the example from here. It is in ES 6 but we did convert to ES 5
this is the code we are using. (even without array.from, it is giving the error)
Help is much appreciated. thank you.
The text was updated successfully, but these errors were encountered: