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

How to correctly import the plugin in node.js? #4

Open
raphael10-collab opened this issue Jun 11, 2021 · 0 comments
Open

How to correctly import the plugin in node.js? #4

raphael10-collab opened this issue Jun 11, 2021 · 0 comments

Comments

@raphael10-collab
Copy link

raphael10-collab commented Jun 11, 2021

I'm now approaching strophe.js in node.js.
How to correctly import the plugin in node.js?

import '../../../lib/strophejs/strophe.disco.js';

let [conn, setConn] = React.useState(new Strophe.Connection("...");
conn.connect("","");
conn.disco.info("");

I get the error: " Cannot read property 'info' of undefined"

node: v14.17.0

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