#Error: Module '@discordjs/builders' has already exported a member named 'Awaitable'.

10 messages · Page 1 of 1 (latest)

quick orchid
#

Some time between 11 hours ago and 30 minutes ago, I started getting this error from my CI. I didn't change any of my discord dependencies; is this an issue with the new update?

Error: node_modules/discord.js/typings/index.d.ts(6385,1): error TS2308: Module '@discordjs/builders' has already exported a member named 'Awaitable'. Consider explicitly re-exporting to resolve the ambiguity.
Error: node_modules/discord.js/typings/index.d.ts(6385,1): error TS2308: Module '@discordjs/builders' has already exported a member named 'Equatable'. Consider explicitly re-exporting to resolve the ambiguity.
Error: node_modules/discord.js/typings/index.d.ts(6385,1): error TS2308: Module '@discordjs/builders' has already exported a member named 'JSONEncodable'. Consider explicitly re-exporting to resolve the ambiguity.
Error: node_modules/discord.js/typings/index.d.ts(6385,1): error TS2308: Module '@discordjs/builders' has already exported a member named 'RangeOptions'. Consider explicitly re-exporting to resolve the ambiguity.
Error: node_modules/discord.js/typings/index.d.ts(6385,1): error TS2308: Module '@discordjs/builders' has already exported a member named 'calculateShardId'. Consider explicitly re-exporting to resolve the ambiguity.
Error: node_modules/discord.js/typings/index.d.ts(6385,1): error TS2308: Module '@discordjs/builders' has already exported a member named 'isEquatable'. Consider explicitly re-exporting to resolve the ambiguity.
worn fractalBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

quick orchid
#

npm list discord.js [email protected], node -v v19.8.1

I currently only have these two discord dependencies in my package.json:

"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.16.0",
bold geyser
#

It's a bug yeah. You'll just have to skip library checks

proud onyx
#

i upgraded to 14.10 and got the exact same message
had to delete node_modules and package lock to revert back to 14.9 😄

proud onyx
heavy wolf
#

skipLibCheck, its a tsconfig compiler option

bold geyser
#

@quick orchid @proud onyx update to 14.10.2

proud onyx
bold geyser
#

I don't think you need to skip the library check anymore