mapbox / supercluster

A very fast geospatial point clustering library for browsers and Node.
ISC License
2.11k stars 299 forks source link

Not support type script (Nestjs) #235

Closed CHOMNANP closed 1 year ago

CHOMNANP commented 1 year ago

I tried import and using the library above in Nestjs.

Yet, look like it not supported.

Screen Shot 2023-08-18 at 10 59 27 AM

danieltyukov commented 1 year ago

Same problem, I believe this should be addressed ASAP. The plugin is not compatable with NestJS

mourner commented 1 year ago

Supercluster does not support CommonJS environments since v8. Either use a ES Modules-based setup (or report an issue about this to Nest), or use an older version of Supercluster.