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

Fix use with nodejs #705

Merged
merged 2 commits into from
Apr 7, 2024
Merged

Conversation

mattblickem-evoluno
Copy link
Contributor

@mattblickem-evoluno mattblickem-evoluno commented Apr 5, 2024

xmldom does not implement querySelector so in nodejs an uncaught error can be triggered by running non-existant querySelector function

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

#704

@jcbrand jcbrand merged commit fd5916e into strophe:master Apr 7, 2024
1 check passed
@jcbrand
Copy link
Contributor

jcbrand commented Apr 7, 2024

Thanks

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

Successfully merging this pull request may close these issues.

2 participants