What is this error?

Hello I have a problem what is this error which does not appear locally?
This comes from the line of code :
const Discord = require(‘discord.js’);
const client = new Discord.Client();

at Object.<anonymous> (/app/index.js:1:17)

at Module._compile (internal/modules/cjs/loader.js:759:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)

at Module.load (internal/modules/cjs/loader.js:628:32)

at Function.Module._load (internal/modules/cjs/loader.js:555:12)

at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)

Doesn’t look like the full error, only a part.

But looking at only part of the error, I can guess with a high possibility that you haven’t installed the discord.js module

1 Like

Thank you for your answer I reinstall everything and it works!

1 Like