You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decided to give discord.js a try and when installing packages with pnpm I get this error when importing SlashCommandBuilder: Module "discord.js" has no exported member SlashCommandBuilder. When using yarn it works just fine.
Importing like this:
import{SlashCommandBuilder}from'discord.js';
What could be the issue here?
I've had some related issues when using pnpm to install some @testing-library packages and in the end I just had to add more devDependencies because pnpm wasn't adding some chained deps for some reason, so I'm guessing this would be the case.
More of a curiosity than anything else, I'll keep using yarn for the time being.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Decided to give discord.js a try and when installing packages with pnpm I get this error when importing
SlashCommandBuilder
: Module "discord.js" has no exported member SlashCommandBuilder. When using yarn it works just fine.Importing like this:
What could be the issue here?
I've had some related issues when using pnpm to install some
@testing-library
packages and in the end I just had to add more devDependencies because pnpm wasn't adding some chained deps for some reason, so I'm guessing this would be the case.More of a curiosity than anything else, I'll keep using yarn for the time being.
Beta Was this translation helpful? Give feedback.
All reactions