Error with module

So I recently got this error
: (And the bot never come back online)
internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module ‘discord.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/app/bot.js:8:35)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)

Run pnpm install
Should fix the problem

1 Like

Hey @LinkossLink,

Looks like this user has also reported the same:

1 Like

So I re-install discord.js and run pnpm i --force
and seems work for now ! Thank you !