Trouble pushing to heroku

I'm trying to deploy my discordjs application to heroku, but i keep getting this error which I don't know how to fix: version discordjs - 14.13.0 nodejs - 18.16.0 Based on the error, it seems like a discordjs sorta issue so guidance would be appreciated thank you
2023-11-12T19:04:08.069023+00:00 app[worker.1]: Error: Cannot find module './timers'
2023-11-12T19:04:08.069023+00:00 app[worker.1]: Require stack:/app/node_modules/discord.js/src/index.js
2023-11-12T19:04:08.069025+00:00 app[worker.1]: - /app/main.js
2023-11-12T19:04:08.069025+00:00 app[worker.1]: at
2023-11-12T19:04:08.069023+00:00 app[worker.1]: Error: Cannot find module './timers'
2023-11-12T19:04:08.069023+00:00 app[worker.1]: Require stack:/app/node_modules/discord.js/src/index.js
2023-11-12T19:04:08.069025+00:00 app[worker.1]: - /app/main.js
2023-11-12T19:04:08.069025+00:00 app[worker.1]: at
2 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
seasha
seashaOP13mo ago
@Tyranasaurus
Want results from more Discord servers?
Add your server