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

$ is not defined #5

Open
ptahchiev opened this issue Oct 4, 2023 · 0 comments
Open

$ is not defined #5

ptahchiev opened this issue Oct 4, 2023 · 0 comments

Comments

@ptahchiev
Copy link

I'm using this library with React like this:

connection.chatstates.sendComposing(action.msg.to);

but I get the following error here:

if ($(message).find('error').length > 0)

react_devtools_backend_compact.js:13096 ReferenceError: $ is not defined
    at F._notificationReceived (bundle.js:157635:5)
    at Handler.run (bundle.js:153255:23)
    at bundle.js:154689:27
    at Array.reduce (<anonymous>)
    at bundle.js:154686:39
    at Object.forEachChild (bundle.js:152641:9)
    at Connection._dataRecv (bundle.js:154684:15)
    at Bosh._onRequestStateChange (bundle.js:156662:9)

Is this plugin only supposed to work with JQuery? Can it be refactored to work with plain vanilla javascript like the other plugins (like the mam plugin for example)?

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

1 participant