Issue with geobucket package
✓ Published0🌍 Public
TThomasG77
Last edited Jun 12, 2025
Created on Jun 12, 2025
This example demonstrates a reproducible issue with the geobuckets package, where importing the `jenksBuckets` function and running it on a small array of numbers produces an `ERR_MODULE_NOT_FOUND` runtime error. The problem stems from the compiled JavaScript in `dist/src/index.js` missing explicit `.js` extensions in its relative import statements for classifiers like `arithmeticProgression`. The code uses the `jenksBuckets` API from geobuckets 0.0.3, with data processed through a TypeScript file compiled via `tsc` to ES2022 modules, then executed with Node.js.
AI-generated descriptionISC Licensed