`ModalBuilder` validation error
When creating a modal like this:
I'm running into this error: https://pastebin.com/S5fda8s4
Not sure what the issue could be as the validation error isn't really helpful (or I just don't know how to interpret it;
CustomModal
for reference
Pastebin
2025-01-13 13:31:20 - ERROR - Encountered error while handling an i...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
4 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!import { ModalBuilder } from 'discord.js';
and import { ActionRowBuilder } from '@discordjs/builders';
Damn.discord.js includes multiple sub-packages, installing these separately can mess with internal code:
Ah I see. I don't have
@discordjs/builders
installed but I am using @sapphire/framework
which does have it as a dependency
I'm confused though I thought I'd only be able to import things that were direct dependencies of my project, not dependencies of dependencies