sentinel-hub/sentinelhub-js

Better handle dependency crashes / errors when Vite is used

zcernigoj opened this issue · 0 comments

Using sentinelhub-js in a project where Vite is used will cause crashes because of xml2js package (vitejs/vite#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