markerclustererplus icon indicating copy to clipboard operation
markerclustererplus copied to clipboard

Require module fails because package.json points to incorrect file in dist

Open patomation opened this issue 10 years ago • 2 comments

On line 33 in package.json. The 'main' key's value is 'dist/markercluster.js' In the dist folder there is only markercluster.min.js. This causes my require statement to fail to find the module. So out of the box it doesn't work.

The work around was to change the package.json to 'dist/markercluster.min.js.' I didn't want to bother with building the un-minified file. But I might want to though.

Anyways. Thanks for the great library!

patomation avatar Jul 24 '15 17:07 patomation

Just hit this too— +1 for updating package.json to reference the 'dist/markercluster.min.js.' file. You want a PR?

jeffinmotion avatar Aug 07 '15 20:08 jeffinmotion

just had the same issue.. fixed it by importing markerclustererplus/dist/markerclusterer.min.js But yeah.. needs fixing please :)

alexoconner avatar Mar 22 '16 15:03 alexoconner