Open anbinhou opened 5 years ago
For a quick fix you could use Parcel
npm install -g parcel-bundler
)window.polylabel = polylabel;
to polyline.jsparcel build polylabel.js
dist/polylabel.js
in your browserI have the same issue. Following chartinger approach, I get error
× No entries found.
at Bundler.bundle (C:\Users\marek\AppData\Roaming\npm\node_modules\parcel-bundler\src\Bundler.js:275:17)
at
when running parcel build polylabel.js
Here's a browser build that you can use from a CDN: https://bundle.run/@mapbox/polylabel@1.0.2
I should update the readme about this.
Here's a browser build that you can use from a CDN: https://bundle.run/@mapbox/polylabel@1.0.2
I should update the readme about this.
Thanks a lot. In case anybody else has the same issue, finally Browserify ( http://browserify.org/#install ) worked for me ( you just replied quiker than I was able to post my solution ;) ).
@mstrop can you share your code here? I'm struggling with the same issue.
I have load the library
import * as polylabel from 'polylabel';
still module not found
I had the same issue and fixed it by including this polylabel.zip js file in my project and including this script tag in my html: Problem sorted
Hi there,
I might be too stupid to use it in javascript. Just wondering how I should use it in my javascript/html so that I can avoid the error information of 'request is not defined' or 'Queue is not a constructor'?
Regards,