Discord development issues

Hello , while using nodemon , console showed up this problem,

Error: Cannot find module ‘C:\Users\Adam\Desktop\sps-bot\index.js’
at Module._resolveFilename (node:internal/modules/cjs/loader:1047:15)
at Module._load (node:internal/modules/cjs/loader:893:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}

Node.js v18.14.0
[nodemon] app crashed - waiting for file changes before starting…

what should i do ?

Seems like you don’t have the module specified on the error log. You need to make sure it exists, and if it does that’s certainly strange. That module, by the error log, should be in your desktop / folder sps-bot / file index.js

nah I think that whole path was the module it was trying to find

dwelt, can you confirm that that file really exists?

As @wh0 said, verify the path is correct

Yes that’s what I was trying to say :sweat_smile:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.