Vue-Socket.io icon indicating copy to clipboard operation
Vue-Socket.io copied to clipboard

Cannot call a class as a function [PROBLEM FOUND]

Open Gaeta opened this issue 5 years ago • 1 comments

#174 Uncaught TypeError: Cannot call a class as a function

Issue is still happening. v3.0.10

vue-socketio.js?5132:10 Uncaught TypeError: Cannot call a class as a function
    at eval (vue-socketio.js?5132:10)
    at t (vue-socketio.js?5132:10)
    at eval (main.js?56d7:27)
    at Module../src/main.js (app.js:1251)
    at __webpack_require__ (app.js:854)
    at fn (app.js:151)
    at Object.1 (app.js:1336)
    at __webpack_require__ (app.js:854)
    at checkDeferredModules (app.js:46)
    at app.js:994

Gaeta avatar Oct 17 '20 22:10 Gaeta

found issue

Vue.use(VueSocketIO)

change it to

Vue.use(new VueSocketIO)

Please update the docs

Gaeta avatar Oct 17 '20 22:10 Gaeta