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

When using @axiom-crypto/react in a Vite project, I can't load the worker #79

Open
hstarorg opened this issue Mar 18, 2024 · 4 comments

Comments

@hstarorg
Copy link

Would you give us a demo with Vite project?

@ytham
Copy link
Collaborator

ytham commented Mar 18, 2024

The way that Vite handles web workers is unfortunately not currently compatible with the way that we use web workers in our React package. this is something that a few people have asked us for, but we'll need to do a deeper investigation when time permits.

@hstarorg
Copy link
Author

Maybe you can support pass the web worker URL from external, like pdf-js

@ytham
Copy link
Collaborator

ytham commented Mar 19, 2024

I don't see any web workers in pdf-js. Are you talking about this repo? https://github.com/rkusa/pdfjs

@hstarorg
Copy link
Author

I don't see any web workers in pdf-js. Are you talking about this repo? https://github.com/rkusa/pdfjs

https://github.com/mozilla/pdf.js this one and the npm package is: https://www.npmjs.com/package/pdfjs-dist

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

2 participants