Z
Z
Zumich2021-12-07 15:26:19
Bots
Zumich, 2021-12-07 15:26:19

What to do if it gives an error when starting the bot in discord?

at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (D:\rythm\index.js:6:14)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'D:\\rythm\\index.js' ]


I will be grateful if you help

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Homenok, 2015-07-15
@Legioner911

There was a similar problem: when inserting the php code into the html file and then loading the page, all the code turned into the text commented out in the html.
The solution was found quite quickly: I just changed the encoding of the files with the php code to utf-8 .
Maybe it has something to do with encodings inside Apache.

the academic year is over, the number of “programmers” has increased
And what's wrong with that? Those who start learning to program during their school years will already have a treasury of knowledge and experience by the institute.

A
Alexey Rytikov, 2015-06-03
@chlp

I'm inspecting the element. I see that the php code is commented out.

If you see php code in the inspector, then it is not being executed at all.
Comments in php scripts, after being passed by the interpreter to HTML, turn into nothing.

A
aornos, 2015-06-03
@aornos

Where do you paste the php code? in wysiwyg or in source?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question