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

Use Sanppy in the electron environment #187

Open
imxiny opened this issue Jun 3, 2024 · 2 comments
Open

Use Sanppy in the electron environment #187

imxiny opened this issue Jun 3, 2024 · 2 comments

Comments

@imxiny
Copy link

imxiny commented Jun 3, 2024

How Do I use Snappy in an electron environment? There is an Error when I call snappyCompressSync after the installation, but there is no specific Error, only an Error. Can you help me? Thank you

@Brooooooklyn
Copy link
Owner

There is an Error when I call snappyCompressSync after the installation

What error?

@imxiny
Copy link
Author

imxiny commented Jun 4, 2024

It's just empty Error , only call stack information, without any specific error reporting. The current solution is to replace the library @stablelib/snappy which is a pure js implementation.

lz4 This compression algorithm library also does not work, this has a specific error Error:
Module did not self-register: '\? \D:\Projects\utools\utools-ipx-v4\node_modules\lz4\build\Release\xxhash.node'.

Using
npm rebuild lz4 --runtime=electron --target=22.3.27 --dist-url=https://atom.io/download/electron
didn't fix it either!

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