ReferenceError: ReadableStream is not defined

the code
https://justpaste.it/iay5u

The error:
PS F:\Coding\Javascript\Discordjs\TheArena> pnpm start            

> the-arena-discord-bot@1.0.0 start F:\Coding\Javascript\Discordjs\TheArena
> node .

F:\Coding\Javascript\Discordjs\TheArena\node_modules\.pnpm\undici@6.19.8\node_modules\undici\lib\web\fetch\response.js:527
  ReadableStream
  ^

ReferenceError: ReadableStream is not defined
    at Object.<anonymous> (F:\Coding\Javascript\Discordjs\TheArena\node_modules\.pnpm\undici@6.19.8\node_modules\undici\lib\web\fetch\response.js:527:3)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)    
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (F:\Coding\Javascript\Discordjs\TheArena\node_modules\.pnpm\undici@6.19.8\node_modules\undici\lib\web\fetch\index.js:11:5)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
 ELIFECYCLE  Command failed with exit code 1.

i used to avoid this error by going to (F:\Coding\Javascript\Discordjs\TheArena\node_modules.pnpm\undici@6.19.8\node_modules\undici\lib\web\fetch\response.js:527:3)
and comment this
webidl.converters.ReadableStream = webidl.interfaceConverter(
  ReadableStream
)

but know i have another problem with uploading files to discord using discord.js so ig that's the problem
Was this page helpful?