Closed mattblickem-evoluno closed 5 months ago
xmldom does not implement querySelector so in nodejs an uncaught error can be triggered by running non-existant querySelector function
xmldom
importing strophe.js from node_modules in nodejs by default uses the wrong file (src/index.js). The exports directive in package.json helps nodejs import (or require) the right file: https://nodejs.org/docs/latest-v20.x/api/packages.html#conditional-exports
exports
package.json
https://github.com/strophe/strophejs/issues/704
Thanks
xmldom
does not implement querySelector so in nodejs an uncaught error can be triggered by running non-existant querySelector functionimporting strophe.js from node_modules in nodejs by default uses the wrong file (src/index.js). The
exports
directive inpackage.json
helps nodejs import (or require) the right file: https://nodejs.org/docs/latest-v20.x/api/packages.html#conditional-exportshttps://github.com/strophe/strophejs/issues/704