Hello. I have a Discord bot hosted on Glitch. Everything was fine, but today it started showing that “node-fetch could not be found”. I found an article that was saying i would have to run “enable-pnpm”. I did that, and the bot now turns on, but then it shows this error:
/rbd/pnpm-volume/dd393cd1-6a2b-4414-a08c-33fb4f210cf7/node_modules/.github.com/discordjs/discord.js/32a432f4a55094ea7c0f6260529f8f911ea8a2de/node_modules/discord.js/src/client/websocket/WebSocketShard.js:171
this.off(ShardEvents.CLOSE, onClose);
^
TypeError: this.off is not a function
at WebSocketShard.onReady (/rbd/pnpm-volume/dd393cd1-6a2b-4414-a08c-33fb4f210cf7/node_modules/.github.com/discordjs/discord.js/32a432f4a55094ea7c0f6260529f8f911ea8a2de/node_modules/discord.js/src/client/websocket/WebSocketShard.js:171:14)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at WebSocketShard.emit (events.js:208:7)
at WebSocketShard.onPacket (/rbd/pnpm-volume/dd393cd1-6a2b-4414-a08c-33fb4f210cf7/node_modules/.github.com/discordjs/discord.js/32a432f4a55094ea7c0f6260529f8f911ea8a2de/node_modules/discord.js/src/client/websocket/WebSocketShard.js:339:14)
at WebSocketShard.onMessage (/rbd/pnpm-volume/dd393cd1-6a2b-4414-a08c-33fb4f210cf7/node_modules/.github.com/discordjs/discord.js/32a432f4a55094ea7c0f6260529f8f911ea8a2de/node_modules/discord.js/src/client/websocket/WebSocketShard.js:264:10)
at WebSocket.onMessage (/rbd/pnpm-volume/dd393cd1-6a2b-4414-a08c-33fb4f210cf7/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:120:16)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
at Receiver.receiverOnMessage (/rbd/pnpm-volume/dd393cd1-6a2b-4414-a08c-33fb4f210cf7/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/websocket.js:789:20)
What do i do now?