How to correctly import the plugin in node.js?
Opened this issue · 0 comments
raphael10-collab commented
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