Typing - Question message
So I have this and I am confused entirely what the reason is.
Import is
Solution:Jump to solution
Okay so using npm instead of yarn worked, I was on latest v4 but it may have been my yarn lock file
3 Replies
Your application uses ESM (and thus the ESM version of discord.js) while a dependency you’re using is loading the CJS version of the library.
Generally most people shouldn’t have this issue, all Sapphire does ESM and CJS bundles precisely to mitigate this issue.
Can you show us more code so we can investigate further?
I'm at work currently but I'll send it when I'm home!
But it's a generic send message function that takes in a message and embeds
The code is
I think I took it off an example
And
import { EmbedBuilder, Guild, Message, User } from 'discord.js';
Sapphire related libraries are
It's been a while but I had some time to check thisSolution
Okay so using npm instead of yarn worked, I was on latest v4 but it may have been my yarn lock file