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

Unable to use @signalapp/libsignal-client #598

Open
AlwarG opened this issue Nov 25, 2024 · 3 comments
Open

Unable to use @signalapp/libsignal-client #598

AlwarG opened this issue Nov 25, 2024 · 3 comments

Comments

@AlwarG
Copy link

AlwarG commented Nov 25, 2024

I am currently using libsignal-protocol-javascript in my Vue.js project. When I try to migrate to @signalapp/libsignal-client, I encounter the following error:

import * as libsignal from "@signalapp/libsignal-client";

The error message is:

 ERROR  Failed to compile with 1 error                                                                      

 error  in node:buffer

Syntax Error: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

Is this error message expected, and how can I resolve it?

node version: 18.20.4
Vue version: 3.2.0

@jrose-signal
Copy link
Contributor

We regularly update the version of Node we test against to match Signal-Desktop; currently we're on 20.11.1, but Desktop is already up to 20.18.0. That doesn't mean earlier versions can't work, but in this case I think the node: syntax was added in Node 20. We'd probably take a PR to remove it for the time being, but eventually we will be using APIs that are only available in Node 20, and you'll have to update. (On the other hand, if you're okay with updating, you could just do that sooner rather than later!)

@AlwarG
Copy link
Author

AlwarG commented Nov 26, 2024

If I understand correctly, instead of using libsignal-protocol-javascript, I should be using @signalapp/libsignal-client for my web application built with the Vue.js framework, rather than for a desktop application. Please let me know if this understanding is incorrect.

As per your suggestion, @jrose-signal, I updated my Node.js version to 20 and re-ran the code, but I am still encountering the same error. Could you kindly advise on how to proceed?

@jrose-signal
Copy link
Contributor

Oh, sorry, I didn't realize you were building a web application. The modern libsignal-client does not support that; it's a wrapper around a Rust implementation of the Signal protocols and other functionality, so it will only work on Desktop. Signal the organization does not currently support any library for web use. (I don't think we know of anything wrong with libsignal-protocol-javascript, but it is not maintained anymore.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants