sentinelhub-js
sentinelhub-js copied to clipboard
Better handle dependency crashes / errors when Vite is used
Using sentinelhub-js in a project where Vite is used will cause crashes because of xml2js package (https://github.com/vitejs/vite/issues/7555)
- quick fix: add note to additionally install stream package (https://www.npmjs.com/package/stream) to their projects which should resolve the issue
- long-term fix 1: better handling of errors that happen in dependencies
- long-term fix 2 (only for xml2js): fix sentinelhub-js so users of the library don't have to install additional packages to their projects