QuickBlox/quickblox-javascript-sdk

Having problem in integration of Quickblox with Vuejs. Error with dependencies using javascript SDK

Rumman001 opened this issue · 5 comments

These are the following errors that i am getting when running npm run watch

ERROR in ./node_modules/node-xmpp-client/lib/Client.js
Module not found: Error: Can't resolve 'child_process' in 'C:\xampp\htdocs\blog\node_modules\node-xmpp-client\lib'

ERROR in ./node_modules/quickblox/src/qbUtils.js
Module not found: Error: Can't resolve 'fs' in 'C:\xampp\htdocs\blog\node_modules\quickblox\src'

ERROR in ./node_modules/quickblox/src/modules/chat/qbChat.js
Module not found: Error: Can't resolve 'nativescript-xmpp-client' in 'C:\xampp\htdocs\blog\node_modules\quickblox\src\modules\chat'

Kindly look into this

My node version is: v12.14.0
My NPM version is: 6.13.4

i have same error ?

how you solved it @Rumman001 ?

Same situation with react js. I think they have launch product without any support. Problem with their npm package.

https://developers.connectycube.com/js/code-samples

this lib have working react js example.

You cannot use the NPM module for frontend use. The best course of action is to simply use a script tag and get the minified JS file from a CDN. I ran into the same issue and found this out the hard way.

Hello,

This is Nikolay from QuickBlox support.

You may use this tutorial to the building an instant messaging app with QuickBlox and Vue.js:
https://quickblox.com/blog/building-an-instant-messaging-app-with-quickblox-and-vue-js/

Please note that integration of QuickBlox services with third-party frameworks is out of the scope of our support and not provided by default.
We provide support for the SDKs specified in the official documentation only.