Discord bot.
KooralYT

I need help. I keep popping up one error all the time and I don't know what to do.

You are viewing a single comment. View All
Highwayman

I'm not seeing that error, but you do have another error when parsing the package.json file. It's pretty easy to fix though: Just add a comma to the end of line 7 and it'll parse I'm pretty sure.

=>

KooralYT

@Highwayman the same problem

Highwayman

Hm. Maybe it’s the nodjs version that replit comes with? That’s been a problem before…
Try making a nodjs16 repl using the Nodejs-16 template repl and then put your code in that, and maybe it’ll work.
@KooralYT

KooralYT
Highwayman

The error ENOENT means that the requested file could not be found. Looking at the error, they give us the file and the line in parentheses:

@ Object.<anonymous> (/home/runner/BotDC-1/.config/interp.js:195:19)

So on line 195 of the file .config/interp.js, we will find our error:

the line is this:

And the variable mainPath is defined on line 98 as:

So, the problem is there… you can either make the index.js file or just change the mainPath variable to be another file.
@KooralYT