Mysterious modal error that's got everyone puzzled: Cannot properly serialize component type:
I am using
[email protected].
I copied this example from discordjs.guide, and simplified it a bit, though the error happens regardless:
With this, I get the error Error: Cannot properly serialize component type: undefined
, it happens on line modal.addComponents(firstActionRow);
This is weird! When I log firstActionRow.components
, the component is there fine and dandy, and it's type is 4
.
I asked in #djs-help-v14, everyone is just as confused as I am! Weird. Does anyone know what's going on?2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!My full stack trace is
my package.json
this is all the related code (the entire is very big)
sorry, I was in midst of trying a different version of discord.js (removing/readding discord.js) but now it's back, and still does the same thing
There is
+-- [email protected]
, I removed it globally (isn't in the ls anymore)
huh
ok
well it works now
why would it read the global dependency instead of the local one 😭
thanks jiralite 🤦♂️