Failed to compileModule not found: Can't resolve 'zlib-sync'

getting this error when just doing
import { Client, GatewayIntentBits } from 'discord.js'
import { Client, GatewayIntentBits } from 'discord.js'
which is weird cause i thought zlib is an optional package
2 Replies
d.js toolkit
d.js toolkit13mo ago
• 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.
CC8
CC813mo ago
yeah thanks