martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.33k stars 424 forks source link

"ReferenceError: rawResponse is not defined" when using @vercel/ncc #579

Open Skhmt opened 2 months ago

Skhmt commented 2 months ago

ReferenceError: rawResponse is not defined at rawResponse = response[i].split(" "); when using @vercel/ncc to combine everything into one .js file.

Fix is to change line 76 of client.js from:

rawResponse = response[i].split(" ");

to

var rawResponse = response[i].split(" ");