I can't run my bot

So i have been coding for only a few when i got this error at Object. (/app/server.js:2:17) and i dont wanna mess up my code and idk what to do about it

Can you share your full error?

here it is Cannot find module ‘express’

8:01 PM

Require stack:

8:01 PM

Jump To- /app/server.js

8:01 PM

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)

8:01 PM

at Function.Module._load (internal/modules/cjs/loader.js:526:27)

8:01 PM

at Module.require (internal/modules/cjs/loader.js:666:19)

8:01 PM

at require (internal/modules/cjs/helpers.js:16:16)

Install express package

how do i do that im not expirienced with this sort of thing

Go to package.json files at your editor, Then tap Add Package button, Then search express. After that, Tap the 1st result.

thx 4 ur help very much i rly needed it i trully thank u

2 Likes

ok i have a second problem or two
ReferenceError: message is not defined

8:23 PM

Jump Toat Object. (/app/server.js:30:16)

8:23 PM

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

8:23 PM

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

8:23 PM

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

8:23 PM

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

8:23 PM

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

8:23 PM

at internal/main/run_main_module.js:17:11

8:23 PM

4 minutes ago

Jump To/app/server.js:30

8:23 PM

var Message = message.toString();

8:23 PM

^

8:23 PM

8:23 PM

ReferenceError: message is not defined

8:23 PM

Jump Toat Object. (/app/server.js:30:16)

8:23 PM

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

8:23 PM

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

8:23 PM

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

8:23 PM

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

8:23 PM

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

8:23 PM

at internal/main/run_main_module.js:17:11

hey i need help again

Heyya buddy! It seems like you need help again!
Can you show us your code at line 30 in server.js?

1 Like

Could you make a new thread?

1 Like

If your code is set up the way mine is, try changing var Message = message.toString(); to var Message = msg.toString();

Hello I have an DONT FINDED ./util/eventLoader error help me pls this is the log
indent preformatted text by 4 spaces
internal/modules/cjs/loader.js:613
throw err;
^
Error: Cannot find module ‘…/events/message’
Require stack:

  • /app/util/eventLoader.js
  • /app/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
    at Function.Module._load (internal/modules/cjs/loader.js:526:27) at Module.require
    (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at reqEvent (/app/util/eventLoader.js:1:29)
    at module.exports (/app/util/eventLoader.js:3:24)
    at Object. (/app/index.js:11:30)
    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)
    internal/modules/cjs/loader.js:613

Heyya @Lilla! Welcome to Glitch Support!

In case of asking this question, We recommend you to create new thread/post for that.

Regards.
Yonle

Hmm how to i create

In main menu, Tap this button

Screenshot_2021_0502_102816

Select your categories (Optional)

Type your post, Then press Create Topic to create a post!