Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

202
Vistas
I'm trying to create a discord bot with Heroku, when I run it locally it works, but it doesn't work when I deploy it on Heroku

When I run index.js locally, it works. When I try to deploy the code on Heroku, this is the error that I recieve.

2022-01-11T05:25:24.034595+00:00 app[worker.1]:     at Module._compile (node:internal/modules/cjs/loader:1101:14)
2022-01-11T05:25:24.034595+00:00 app[worker.1]:     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
2022-01-11T05:25:24.034595+00:00 app[worker.1]:     at Module.load (node:internal/modules/cjs/loader:981:32)
2022-01-11T05:25:24.034595+00:00 app[worker.1]:     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
2022-01-11T05:25:24.034595+00:00 app[worker.1]:     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
2022-01-11T05:25:24.034596+00:00 app[worker.1]:   code: 'MODULE_NOT_FOUND',
2022-01-11T05:25:24.034596+00:00 app[worker.1]:   requireStack: [ '/app/index.js' ]
2022-01-11T05:25:24.034596+00:00 app[worker.1]: }
2022-01-11T05:25:24.156241+00:00 heroku[worker.1]: Process exited with status 1
2022-01-11T05:25:24.201235+00:00 heroku[worker.1]: State changed from up to crashed

Contents of package.json

{
  "dependencies": {
    "discord.js": "^13.5.1"
  },
  "engines": {
    "node": "16.13.1"
  },
  "name": "yourstickers-bot",
  "version": "1.0.0",
  "main": "index.js",
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/TheBread-Master/yourstickers-bot.git"
  },
  "author": "Bread",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/TheBread-Master/yourstickers-bot/issues"
  },
  "homepage": "https://github.com/TheBread-Master/yourstickers-bot#readme",
  "description": ""
}

I ran npm init and it still didn't work.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda