triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

Can't find variable: SocketIOClient #56

Closed jporter-dev closed 6 years ago

jporter-dev commented 6 years ago

Attempting to get this library working with Nativescript + Vue. However, it errors instantly with ReferenceError: Can't find variable: SocketIOClient

This occurs with only these two lines of code inserted...

var SocketIO = require('nativescript-socketio').SocketIO;
var socketIO = new SocketIO('http://localhost:5000');

I have also tried this with the destructured import, and that fails with the same error.

I am using the following versions...