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 iniciando el shard 0 #20

Open
NoSoyDany opened this issue Jan 10, 2022 · 3 comments
Open

Error iniciando el shard 0 #20

NoSoyDany opened this issue Jan 10, 2022 · 3 comments

Comments

@NoSoyDany
Copy link

NoSoyDany commented Jan 10, 2022

Aún hechos los pasos, la consola tira el siguiente error al ejecutar npm start.

(Hosteado en replit.com)

Iniciando shard 0
(node:56) DeprecationWarning: The message sweeping client options are deprecated, use the makeCache option with LimitedCollection instead.
(Use node --trace-deprecation ... to show where the warning was created)
[Error: ENOTDIR: not a directory, scandir './commands/.env'] {
errno: -20,
code: 'ENOTDIR',
syscall: 'scandir',
path: './commands/.env'
}
[Error: ENOTDIR: not a directory, scandir './commands/.gitattributes'] {
errno: -20,
code: 'ENOTDIR',
syscall: 'scandir',
path: './commands/.gitattributes'
}
[Error: ENOTDIR: not a directory, scandir './commands/.gitignore'] {
errno: -20,
code: 'ENOTDIR',
syscall: 'scandir',
path: './commands/.gitignore'
}
[Error: ENOTDIR: not a directory, scandir './commands/application.yml'] {
errno: -20,
code: 'ENOTDIR',
syscall: 'scandir',
path: './commands/application.yml'
}
node:internal/modules/cjs/loader:940
const err = new Error(message);
^

Error: Cannot find module '.././lang/index.json'
Require stack:

  • /home/runner/SphericalFaroffIntroductory/commands/structures/Client.js
  • /home/runner/SphericalFaroffIntroductory/handlers/commands.js
  • /home/runner/SphericalFaroffIntroductory/bot.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.Module._load (node:internal/modules/cjs/loader:773:27)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object. (/home/runner/SphericalFaroffIntroductory/commands/structures/Client.js:4:17)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at iniciar (/home/runner/SphericalFaroffIntroductory/handlers/commands.js:13:21)
    at /home/runner/SphericalFaroffIntroductory/handlers/commands.js:23:7
    at FSReqCallback.oncomplete (node:fs:184:23) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/runner/SphericalFaroffIntroductory/commands/structures/Client.js',
    '/home/runner/SphericalFaroffIntroductory/handlers/commands.js',
    '/home/runner/SphericalFaroffIntroductory/bot.js'
    ]
    }
    Error [SHARDING_READY_DIED]: Shard 0's process exited before its Client became ready.
    at Shard.onDeath (/home/runner/SphericalFaroffIntroductory/node_modules/discord.js/src/sharding/Shard.js:160:16)
    at Object.onceWrapper (node:events:472:26)
    at Shard.emit (node:events:365:28)
    at Shard._handleExit (/home/runner/SphericalFaroffIntroductory/node_modules/discord.js/src/sharding/Shard.js:392:10)
    at ChildProcess.emit (node:events:365:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
    [Symbol(code)]: 'SHARDING_READY_DIED'
    }
@NoSoyDany
Copy link
Author

Versión de node: v16.0.0
Versión de NPM: v6.14.15

@eliyya
Copy link
Contributor

eliyya commented Sep 5, 2022

yo veo mucho el /commands/, me hace creer que tu estructura en replit esta mal montada, no deberia haber nada dentro de /commands/ mas que carpetas con comandos, el error dice not a directory, ya que espera encontrar carpetas ahi, no archivos. prueba crear otro replit clonando el repositorio.

Ademas debes tener una version de node igual o mayor a v16.15.0 como dice en los requisitos puestos en el README

@eliyya
Copy link
Contributor

eliyya commented Dec 20, 2022

Lograste resolver el problema?
recomiendo cerrar el issue si es asi

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