sentinelhub-js icon indicating copy to clipboard operation
sentinelhub-js copied to clipboard

Better handle dependency crashes / errors when Vite is used

Open zcernigoj opened this issue 2 years ago • 0 comments

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

zcernigoj avatar Feb 27 '23 15:02 zcernigoj