pushrax / node-rcon

A generic RCON protocol client for node.js
MIT License
133 stars 31 forks source link

Rcon is not a constructor #45

Open ECEstal opened 1 year ago

ECEstal commented 1 year ago

Trying to construct it says that rcon is not a constructor.

ThePhantomPig791 commented 1 year ago

After trying to fix this same error for a while, I found a solution (I don't know if you care anymore, though)!

Instead of importing like this, const { Rcon } = require('rcon'); Import it like this: const Rcon = require('rcon');