ReferenceError: ReadableStream is not defined

the code https://justpaste.it/iay5u The error:
PS F:\Coding\Javascript\Discordjs\TheArena> pnpm start

> the-arena-discord-[email protected] start F:\Coding\Javascript\Discordjs\TheArena
> node .

F:\Coding\Javascript\Discordjs\TheArena\node_modules\.pnpm\[email protected]\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\[email protected]\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\[email protected]\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.
PS F:\Coding\Javascript\Discordjs\TheArena> pnpm start

> the-arena-discord-[email protected] start F:\Coding\Javascript\Discordjs\TheArena
> node .

F:\Coding\Javascript\Discordjs\TheArena\node_modules\.pnpm\[email protected]\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\[email protected]\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\[email protected]\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\[email protected]\node_modules\undici\lib\web\fetch\response.js:527:3) and comment this
webidl.converters.ReadableStream = webidl.interfaceConverter(
ReadableStream
)
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
4 Replies
d.js toolkit
d.js toolkit4d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
!                     𝔇𝔢𝔪𝔬𝔫
discord.js 14.17.3 v22.13.0
treble/luna
treble/luna4d ago
sounds like your node isnt updated log process.version
!                     𝔇𝔢𝔪𝔬𝔫
okay you're right but how does pnpm uses old verion of node and i only have the v22.13.0 one installed
pnpm start

> the-arena-discord-[email protected] start F:\Coding\Javascript\Discordjs\TheArena
> node .

v16.20.2
pnpm start

> the-arena-discord-[email protected] start F:\Coding\Javascript\Discordjs\TheArena
> node .

v16.20.2
but with node . directly
node .
v22.13.0
node .
v22.13.0

Did you find this page helpful?