discord.js - Imagine ❄d-I❄
discord.js - Imagine ❄7mo ago
9 replies
bug

Cannot find module './structures/PrimaryEntryPointCommandInteraction'

Situation:
I've tried to host a bot via Render which they throw err for Cannot find module './structures/PrimaryEntryPointCommandInteraction'
Try on Local Code
After I try on local code, I also got present with the same error:
node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module './structures/PrimaryEntryPointCommandInteraction'
Require stack:
- D:\rcrpBot\src\index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Module.require (node:internal/modules/cjs/loader:1311:12)
    at require (node:internal/modules/helpers:136:16)
    at Object.<anonymous> (D:\rcrpBot\src\index.js:3:45)
    at Module._compile (node:internal/modules/cjs/loader:1554:14)
    at Object..js (node:internal/modules/cjs/loader:1706:10)
    at Module.load (node:internal/modules/cjs/loader:1289:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'D:\\rcrpBot\\src\\index.js' ]
}

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


What could be causing this?
Was this page helpful?