quickblox-javascript-sdk icon indicating copy to clipboard operation
quickblox-javascript-sdk copied to clipboard

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

Open Rumman001 opened this issue 5 years ago • 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

Rumman001 avatar Jul 03 '20 14:07 Rumman001

i have same error ?

afroz9008 avatar Jul 30 '20 13:07 afroz9008

how you solved it @Rumman001 ?

afroz9008 avatar Jul 30 '20 13:07 afroz9008

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.

marxyes avatar Aug 11 '20 16:08 marxyes

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.

therajumandapati avatar Aug 18 '20 00:08 therajumandapati

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.

ghost avatar Oct 07 '21 14:10 ghost