Skip to content

Error al ejecutar #6

@AlbertMorenoDEV

Description

@AlbertMorenoDEV

Tengo otro error y no veo muy bien que puede ser... se produce al entrar en la url desde el navegador, parece que no encuentra el método builder.
¿puede que me falte otro paquete? he intentado ver que paquete puede ser y no consigo encontrarlo.

Gracias

/home/pi/git/Raspberry-Pi-Status/node_modules/socket.io/lib/static.js:100
client.builder(transports, {
^
TypeError: Object function lookup(uri, opts) {
if (typeof uri == 'object') {
opts = uri;
uri = undefined;
}

opts = opts || {};

var parsed = url(uri);
var source = parsed.source;
var id = parsed.id;
var io;

if (opts.forceNew || opts['force new connection'] || false === opts.multiplex) {
debug('ignoring socket cache for %s', source);
io = Manager(source, opts);
} else {
if (!cache[id]) {
debug('new io instance for %s', source);
cache[id] = Manager(source, opts);
}
io = cache[id];
}

return io.socket(parsed.path);
} has no method 'builder'
at build (/home/pi/git/Raspberry-Pi-Status/node_modules/socket.io/lib/static.js:100:12)
at Static. (/home/pi/git/Raspberry-Pi-Status/node_modules/socket.io/lib/static.js:121:5)
at Static.write (/home/pi/git/Raspberry-Pi-Status/node_modules/socket.io/lib/static.js:388:24)
at Manager.handleRequest (/home/pi/git/Raspberry-Pi-Status/node_modules/socket.io/lib/manager.js:596:19)
at Server. (/home/pi/git/Raspberry-Pi-Status/node_modules/socket.io/lib/manager.js:119:10)
at Server.emit (events.js:70:17)
at HTTPParser.onIncoming (http.js:1610:12)
at HTTPParser.parserOnHeadersComplete as onHeadersComplete
at Socket.ondata (http.js:1506:22)
at TCP.onread (net.js:374:27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions