BeepIsla / csgo-commend-bot

Commend/Report bot in NodeJS
GNU Affero General Public License v3.0
289 stars 144 forks source link

'[target,(...(intermediate value)(intermediate value)(intermediate value))].flat is not a function', #263

Closed j0t4ribeiro closed 4 years ago

j0t4ribeiro commented 4 years ago

[AgonizingAboundingTherapeuticHornet1452] Logged onto Steam - GC Time: 2/26/2020, 5:48:53 PM [AgonizingAboundingTherapeuticHornet1452] Authenticated to anonymous server with ticket 1218945517 [AgonizingAboundingTherapeuticHornet1452] Failed to login and has been marked as invalid (5/5) { name: 'TypeError', message: '[target,(...(intermediate value)(intermediate value)(intermediate value))].flat is not a function', stack: 'TypeError: [target,(...(intermediate value)(intermediate value)(intermediate value))].flat is not a function\n at a.login.then (/root/csgo-commend-bot/helpers/Bots.js:88:7)\n at process._tickCallback (internal/process/next_tick.js:68:7)' } Chunk 1/1 finished with 0 successful commends and 5 failed commends Finished all chunks with a total of 0 successful and 5 failed commends

BeepIsla commented 4 years ago

Update NodeJS.

flat() came in NodeJS v11.0.0 - You should update to v12 as mentioned in the README.

j0t4ribeiro commented 4 years ago

wow, i updated and came back, and had not seen the version, thank you very much