TypeError: Cannot read properties of undefined (reading 'process')
When i launch my file it gives me this error and I dont know why.
23 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes
you are doing .process somewhere
show full error
My title is the full error,
no
doubt
i dont get anything else
missing the stack
?
where stack trace?
don't stringify the error, send the full error
this is a full error for example
TypeError: Cannot read properties of undefined (reading 'process')
at C:\Users\Niklas\Documents\MCT-System\src\registerCommands.js:18:68
at Object.<anonymous> (C:\Users\Niklas Pfeffer\Documents\MCT-System\src\registerCommands.js:26:3)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
registerCommands.js line 18
line 18 of registerCommands.js
Line 18 is this:
Routes.applicationGuildCommands(process.env.CLIENT_ID. process.env.GUILD_ID),
Ah
see the error
I'm intrigued
what problem did you find
Yes
oh
lol
xD
ok thanks for the help tho
well... CLIENT_ID is undefined anyway
so you'll have to fix that
its not, its in my .env