Error: Cannot properly serialize component type:
While refactoring and sourcing out some modals into external files, i encountered this error.
Ive been trying for a few hours so im 100% sure its the exact same code.
Ive also tried the modal tutorial code from the discordjs wiki and could reproduce the error when putting it in a function that returns a modal which resides in a different file.
1 Reply
This is the complete error message:
Figured it out: I imported ActionRowBuilder, TextInputBuilder and from @discordjs/builders while they need to be imported from discord.js