When I run my code it says ‘MODULE_NOT_FOUND’ and I can’t fix it

Question:
How do I fix Module Not Found Code?
Repl link:

code snippet

MOUDLE_NOT_FOUND

Im coding with JavaScript

Hey, @MasonSilvers welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

2 Likes

Sure give me a second!

https://replit.com/@MasonSilvers/INRP-Moderation-Manager?s=app

Your code is missing a main file – which, on replit, isindex.js by default. Also

2 Likes

Where is the guide? Please tell me, i’m new.

You could read this, and then if you use another guide make sure it is for the latest version of discord.js (v14)

2 Likes

Thanks so much! This really helped

@UMARismyname It now shows ‘ClientMissingIntect’

1 Like

ClientMissingIntent you mean?

Yes, that’s what I mean.

1 Like

Your token is most likely missing the intents, go to the Discord developer portal and enable the correct intents.

What intents? Do I enable

1 Like

Just in case, I enable all of them. It’s easier and will resolve the missing intents error.

1 Like

I have all of them enabled.

1 Like

2 posts were split to a new topic: Can’t open file main.py no such file or directory