-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Observed behavior
@nats-io_transport-node.js?v=79b8d203:9096 Uncaught (in promise) TypeError: (0 , node_net_1.createConnection) is not a function
at NodeTransport.dial (@nats-io_transport-node.js?v=79b8d203:9096:56)
at NodeTransport.connect (@nats-io_transport-node.js?v=79b8d203:9060:38)
at _ProtocolHandler.dial (@nats-io_transport-node.js?v=79b8d203:6784:37)
at _ProtocolHandler._doDial (@nats-io_transport-node.js?v=79b8d203:6828:24)
at async _ProtocolHandler.dodialLoop (@nats-io_transport-node.js?v=79b8d203:6869:15)
Expected behavior
const res = await connect({
servers: ['nats://localhost:4222'],
name: 'test',
});
console.log(res);
Server and client version
"server": "2.12.1"
"@nats-io/nats-core": "^3.2.0",
"@nats-io/transport-node": "^3.2.0",
Host environment
Windows
Node v24.5.0
Steps to reproduce
import { connect } from '@nats-io/transport-node';
const res = await connect({
servers: ['nats://localhost:4222'],
name: 'test',
});
console.log(res);