strophe/strophejs-plugin-disco

How to correctly import the plugin in node.js?

Opened this issue · 0 comments

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