-
Notifications
You must be signed in to change notification settings - Fork 63
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
global not defined #27
Comments
Hi!
We aren't officially supporting Ionic. Feel free to reopen the issue if this does not solve your issue. |
Hey,
Not sure if this is error shows up because of Ionic or if this is a NYPA situation; I am not extremely experienced in XMPP. |
I've reopened the issue and will take a look at using ngx-chat in ionic tomorrow. |
@zlyfer
in your root directory. |
Thank you this worked like a charm!
I have NoopAnimationsModule in app.module but import NgxChatModule in the seperate chat.module and I also tried BrowserAnimationsModule which didn't fix the error. I also don't know if this still on topic of the issue and apologize if it's not. Edit: I also get the warning: |
Hi zlyfer, no need to apologize, everythings fine 😄
ngx-chat is at this moment not compatible with OpenFire, see #16.
Please include ngx-chat in your app module like this:
Would it be possible to provide a screenshot? The stack trace looks ionic specific, but I am not quite sure.
When calling
Will get back on you later. |
@trampi
Well OpenFire is my only option.
The username I use is not even similar to the domain nor service. Maybe that's a bug? Thanks for the help so far. |
No problem, I am pretty confident that this will work really soon.
Indeed. If your username does not contain '@' this can be ignored. Fixed the condition for the next release. |
@trampi |
Got the fix locally working, will test it out tomorrow morning and release it if everything works :-) |
We've release 0.9.0 (which requires angular 9). It should be possible to backport the fixes to the angular 8 version of ngx-chat. Reopen this issue if you need it. All the best! |
Hey,
(Original domain name replaced with example.com) |
Strange. You could try to use https://pazznetwork.github.io/ngx-chat-ghpages/ for diagnosis, open the network packet inspector and check the traffic. For the openfire default configuration you can try:
|
Hello, I tried to get ngx-chat to work using Ionic 5 & Angular 8 but after importing like described in the README I get following error:
Uncaught ReferenceError: global is not defined (index.js:43) at Object../node_modules/buffer/index.js (index.js:43) at __webpack_require__ (bootstrap:84) at Object../node_modules/safe-buffer/index.js (index.js:2) at __webpack_require__ (bootstrap:84) at Object../node_modules/hash-base/index.js (index.js:2) at __webpack_require__ (bootstrap:84) at Object../node_modules/md5.js/index.js (index.js:3) at __webpack_require__ (bootstrap:84) at Object../node_modules/create-hash/browser.js (browser.js:3) at __webpack_require__ (bootstrap:84)
I am working on a mobile app, which is why I use Ionic. Can someone help me resolve this issue?
Angular CLI; 9.0.2
Node: 10.16.3
OS: Windows x64 (Deploying on Android)
Angular: ~8.1.2
Ionic Angular: ^4.11.10
The text was updated successfully, but these errors were encountered: