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

ERROR Error loading shards: Shard 0's process exited before its Client became ready. #455

Open
Rohitparakh opened this issue Oct 1, 2022 · 0 comments

Comments

@Rohitparakh
Copy link

I am having trouble running the bot because of a couple of errors:

  1. ERROR Error loading shards: Shard 0's process exited before its Client became ready.
  2. RangeError: Plugin at index 0 does not extend Plugin.

Steps to reproduce the behavior:

  1. Install dependencies and run start command.

Expected behavior:
Bot to run without errors.

Error Console log:

[16:51:14:458]: LOG =-=-=-=-=-=-=- Config file Verification -=-=-=-=-=-=-= 
[16:51:14:460]: LOG Verifying config.. 
[16:51:14:460]: LOG Checking client details.. 
[16:51:16:328]: LOG Checking MongoDB URL 
[16:51:17:102]: LOG =-=-=-=-=-=-=- Loading shard(s) -=-=-=-=-=-=-= 
/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/erela.js/dist/structures/Manager.js:102
                    throw new RangeError(`Plugin at index ${index} does not extend Plugin.`);
                    ^

RangeError: Plugin at index 0 does not extend Plugin.
    at new Manager (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/erela.js/dist/structures/Manager.js:102:27)
    at new AudioManager (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/base/Audio-Manager.js:14:3)
    at new Egglord (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/base/Egglord.js:140:18)
    at Object.<anonymous> (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/bot.js:5:13)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47
[16:51:18:233]: ERROR Error loading shards: Shard 0's process exited before its Client became ready. 
/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/erela.js/dist/structures/Manager.js:102
                    throw new RangeError(`Plugin at index ${index} does not extend Plugin.`);
                    ^

RangeError: Plugin at index 0 does not extend Plugin.
    at new Manager (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/erela.js/dist/structures/Manager.js:102:27)
    at new AudioManager (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/base/Audio-Manager.js:14:3)
    at new Egglord (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/base/Egglord.js:140:18)
    at Object.<anonymous> (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/bot.js:5:13)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47
/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/discord.js/src/sharding/Shard.js:162
        reject(new Error(ErrorCodes.ShardingReadyDied, this.id));
               ^

Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
    at Shard.onDeath (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/discord.js/src/sharding/Shard.js:162:16)
    at Object.onceWrapper (node:events:642:26)
    at Shard.emit (node:events:527:28)
    at Shard._handleExit (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/discord.js/src/sharding/Shard.js:408:10)
    at ChildProcess.emit (node:events:527:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
Emitted 'error' event on Shard instance at:
    at /Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/discord.js/src/sharding/Shard.js:416:56
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 'ShardingReadyDied'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
rohitparakh@Rohits-MacBook-Pro Discord-Bot-master % /Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/erela.js/dist/structures/Manager.js:102
                    throw new RangeError(`Plugin at index ${index} does not extend Plugin.`);
                    ^

RangeError: Plugin at index 0 does not extend Plugin.
    at new Manager (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/node_modules/erela.js/dist/structures/Manager.js:102:27)
    at new AudioManager (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/base/Audio-Manager.js:14:3)
    at new Egglord (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/base/Egglord.js:140:18)
    at Object.<anonymous> (/Users/rohitparakh/Desktop/Discord/Discord-Bot-master/src/bot.js:5:13)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant