Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (Reading 'emit') #68

Closed
deepnimma opened this issue Dec 12, 2021 · 1 comment
Closed

Cannot read properties of undefined (Reading 'emit') #68

deepnimma opened this issue Dec 12, 2021 · 1 comment
Labels
bug Something isn't working P: High Priority High TOTD/COTD API
Milestone

Comments

@deepnimma
Copy link

Error usually happens when COTD 1 starts and crashes the entire program.

Error:

/home/tmindiabot/Desktop/TMIndiaBot/TMIndiaBotApi/node_modules/trackmania.io/src/client/Client.js:89
                this.client.emit('totd', totd);
                            ^

TypeError: Cannot read properties of undefined (reading 'emit')
    at Timeout._onTimeout (/home/tmindiabot/Desktop/TMIndiaBot/TMIndiaBotApi/node_modules/trackmania.io/src/client/Client.js:89:29)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Node.js v17.1.0
@GreepTheSheep GreepTheSheep added bug Something isn't working P: High Priority High TOTD/COTD API labels Dec 12, 2021
@GreepTheSheep GreepTheSheep added this to the Version 3.0.3 milestone Dec 12, 2021
@GreepTheSheep GreepTheSheep mentioned this issue Dec 12, 2021
@GreepTheSheep
Copy link
Owner

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P: High Priority High TOTD/COTD API
Projects
None yet
Development

No branches or pull requests

2 participants