Another error in visual
I am trying to turn my bot on using the node . command and this is the error i am getting
Error: Cannot find module 'C:\Users\hartl\OneDrive\Desktop\PoT\JL_Bot'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
7 Replies
- 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 staffUnknown User•13mo ago
Message Not Public
Sign In & Join Server To View
apologies this was the same error i got when trying to load the discord.js and you guys helped me fix that. but now its doing this
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
const Discord = require('discord.js');
const bot = new Discord.Cliet();
const token = '';
const prefix = '';
bot.on('ready', () => {
console.log('i am ready')
})
bot.login(token)
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View