SudhanPlayz / Discord-MusicBot

An advanced discord music bot, supports Spotify, Soundcloud, YouTube with Shuffling, Volume Control and Web Dashboard with Slash Commands support!
https://musicbot.darrenofficial.com
Other
2.99k stars 2.9k forks source link

TypeError: Cannot read properties of undefined (reading 'on') #735

Closed Dravanz closed 2 years ago

Dravanz commented 2 years ago

When i try to start the bot im my machine its not start

    var existing = target[methodName];
                         ^
TypeError: Cannot read properties of undefined (reading 'on')
    at /etc/node_modules/appmetrics/lib/aspect.js:56:26
    at Array.forEach (\u003canonymous\u003e)
    at Object.exports.before (/etc/node_modules/appmetrics/lib/aspect.js:55:9)
    at SocketioProbe.attach (/etc/node_modules/appmetrics/probes/socketio-probe.js:69:12)
    at /etc/node_modules/appmetrics/index.js:155:27
    at Module.newFunc (/etc/node_modules/appmetrics/lib/aspect.js:102:14)
    at Module.newFunc [as require] (/etc/node_modules/ibmapm-embed/appmetrics-zipkin/lib/aspect.js:101:26)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.\u003canonymous\u003e (/home/node/structures/DiscordMusicBot.js:4:20)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)

Further details: using node index.js ocurre this errors, my host dont use the npm install and ocurre this. how to fix?

Relevant client options:

JotaroKujo0525 commented 2 years ago

wha-

JotaroKujo0525 commented 2 years ago

tell me, what did you do for this error to occur

DarrenOfficial commented 2 years ago

This is invalid, to help you we need more information such as: • What are you trying to do? • What is your code? • What errors and debug logs do you have?