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

help please i have no clue how to fix this #239

Open
KaiKingStreams opened this issue May 27, 2024 · 3 comments
Open

help please i have no clue how to fix this #239

KaiKingStreams opened this issue May 27, 2024 · 3 comments

Comments

@KaiKingStreams
Copy link

node:internal/url:814
const href = bindingUrl.parse(input, base, raiseException);
^

TypeError: Invalid URL
at new URL (node:internal/url:814:29)
at parseURL (C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\undici\lib\core\util.js:49:11)
at Object.parseOrigin (C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\undici\lib\core\util.js:115:9)
at new Pool (C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\undici\lib\pool.js:70:23)
at new Node (C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\erela.js\dist\structures\Node.js:91:21)
at new Manager (C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\erela.js\dist\structures\Manager.js:108:17)
at Object. (C:\Users\seank\Documents\GitHub\ShaDragonBot\src\bot.js:57:21)
at Module._compile (node:internal/modules/cjs/loader:1434:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
at Module.load (node:internal/modules/cjs/loader:1249:32) {
code: 'ERR_INVALID_URL',
input: 'http://node2.catfein.com:40046:40046'
}

Node.js v22.2.0
C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\discord.js\src\sharding\Shard.js:178
reject(new DiscordjsError(ErrorCodes.ShardingReadyDied, this.id));
^

Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
at Shard.onDeath (C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\discord.js\src\sharding\Shard.js:178:16)
at Object.onceWrapper (node:events:635:26)
at Shard.emit (node:events:532:35)
at Shard._handleExit (C:\Users\seank\Documents\GitHub\ShaDragonBot\node_modules\discord.js\src\sharding\Shard.js:439:10)
at ChildProcess.emit (node:events:520:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
code: 'ShardingReadyDied'
}

Node.js v22.2.0

@Felitendo
Copy link

Just do 'npm rebuild'

@KaiKingStreams
Copy link
Author

Did that but now i get this error

node:internal/modules/cjs/loader:602
throw e;
^

Error: Cannot find module 'D:\GitHub\ShaDragonBot\node_modules@discordjs\util\dist\index.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1223:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1211:15)
at resolveExports (node:internal/modules/cjs/loader:595:14)
at Module._findPath (node:internal/modules/cjs/loader:685:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1172:27)
at Module._load (node:internal/modules/cjs/loader:1012:27)
at Module.require (node:internal/modules/cjs/loader:1271:19)
at require (node:internal/modules/helpers:123:16)
at Object. (D:\GitHub\ShaDragonBot\node_modules\discord.js\src\index.js:3:29)
at Module._compile (node:internal/modules/cjs/loader:1434:14) {
code: 'MODULE_NOT_FOUND',
path: 'D:\GitHub\ShaDragonBot\node_modules\@discordjs\util\package.json'
}

Node.js v22.2.0

@Felitendo
Copy link

Did that but now i get this error

node:internal/modules/cjs/loader:602 throw e; ^

Error: Cannot find module 'D:\GitHub\ShaDragonBot\node_modules@discordjs\util\dist\index.js' at createEsmNotFoundErr (node:internal/modules/cjs/loader:1223:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1211:15) at resolveExports (node:internal/modules/cjs/loader:595:14) at Module._findPath (node:internal/modules/cjs/loader:685:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1172:27) at Module._load (node:internal/modules/cjs/loader:1012:27) at Module.require (node:internal/modules/cjs/loader:1271:19) at require (node:internal/modules/helpers:123:16) at Object. (D:\GitHub\ShaDragonBot\node_modules\discord.js\src\index.js:3:29) at Module._compile (node:internal/modules/cjs/loader:1434:14) { code: 'MODULE_NOT_FOUND', path: 'D:\GitHub\ShaDragonBot\node_modules@discordjs\util\package.json' }

Node.js v22.2.0

npm i discord.js

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

2 participants