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

Strophe is undefined #2

Open
Deadid opened this issue Mar 16, 2017 · 2 comments
Open

Strophe is undefined #2

Deadid opened this issue Mar 16, 2017 · 2 comments

Comments

@Deadid
Copy link

Deadid commented Mar 16, 2017

Hi guys, I'm trying to patch Strophe with your plugin like that:

import { Strophe } from 'strophe.js'
import 'strophejs-plugin-register'

but I'm getting Strophe is undefined inside of it. Is there any way to fix it without moving Strophe to global scope?

@danyim
Copy link

danyim commented Mar 26, 2017

Also running into the same issue.

@antoniogoulao
Copy link

I solved this problem by editing and importing Strophe inside the file strophe.register.js
[...]
*/
import { Strophe } from "strophe.js";

/**

  • File: strophe.register.js
  • A Strophe plugin for XMPP In-Band Registration.
    */
    Strophe.addConnectionPlugin('register', {
    [...]

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

3 participants