Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handle dependency crashes / errors when Vite is used #235

Open
zcernigoj opened this issue Feb 27, 2023 · 0 comments
Open

Better handle dependency crashes / errors when Vite is used #235

zcernigoj opened this issue Feb 27, 2023 · 0 comments

Comments

@zcernigoj
Copy link
Collaborator

zcernigoj commented Feb 27, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant