Simpleboy353 / REAPER-2.0

A multi-purpose discord bot made using Discord.js V14. Includes Logging, Welcomer, Slash Commands, Menu based Help Command and so much more!
GNU General Public License v3.0
329 stars 225 forks source link

Error: `ERR_REQUIRE_ESM` for the package `chalk` #131

Closed CherryWaffle closed 2 years ago

CherryWaffle commented 2 years ago

I'm getting this error ERR_REQUIRE_ESM for the chalk package..

Simpleboy353 commented 2 years ago

can you try reverting back to an older version of chalk

CherryWaffle commented 2 years ago

It says its a problem with node-fetch package

Simpleboy353 commented 2 years ago

1). How to fix Error [ERR_REQUIRE_ESM]: require() of ESM module for the package node-fetch ?

^^ This should probably fix the error and your bot should start to work normally.

2). How to fix Error [ERR_REQUIRE_ESM]: require() of ESM Module for the package chalk ?

^^ This should probably fix the error and your bot should start to work normally.

CherryWaffle commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

CherryWaffle commented 2 years ago

I did make a few changes, but it wont work for some reason ..

Rahuletto commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Full error please ?

Emiluvik commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Full error please ?

This is the full error, for me at least... https://imgur.com/a/VrbNJYK

NotMinhDucGamingTV commented 2 years ago

find the line that require client and check for typo

Shaham99 commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

I got this same error how to fix this?

Rahuletto commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Full error please ?

This is the full error, for me at least... https://imgur.com/a/VrbNJYK

Full error means to show the console. It's just one line. Bruh

Simpleboy353 commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Full error please ?

This is the full error, for me at least... https://imgur.com/a/VrbNJYK

Go to the index.js file and change the code (line 73 to line 81) to comments, and then run the bot again. This will help you to log the full error in the console.

Emiluvik commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Full error please ?

This is the full error, for me at least... https://imgur.com/a/VrbNJYK

Go to the index.js file and change the code (line 73 to line 81) to comments, and then run the bot again. This will help you to log the full error in the console.

That works, thanks!

Emiluvik commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Full error please ?

This is the full error, for me at least... https://imgur.com/a/VrbNJYK

Full error means to show the console. It's just one line. Bruh

THIS is the full error. https://imgur.com/a/pNQ2xLI

Simpleboy353 commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Error Fixed. Update your ready.js event file.

Emiluvik commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Error Fixed. Update your ready.js event file.

It did work... A little bit, now I get a new error. https://imgur.com/a/cnl195u

Simpleboy353 commented 2 years ago

The bot now starts, but I get this error Uncaught Exception: ReferenceError: client is not defined and the bot wont respond to commands.

Error Fixed. Update your ready.js event file.

It did work... A little bit, now I get a new error. https://imgur.com/a/cnl195u

Fixed. Should work now.