node-rcon icon indicating copy to clipboard operation
node-rcon copied to clipboard

Rcon is not a constructor

Open ECEstal opened this issue 2 years ago • 1 comments

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

ECEstal avatar Sep 20 '22 14:09 ECEstal

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');

ThePhantomPig791 avatar Nov 25 '22 14:11 ThePhantomPig791