Node: TypeError: Readable.from is not a function

Created on 15 Jul 2019  路  3Comments  路  Source: nodejs/node

Hi Folks,

I was learning "Streams" from Nodejs.org website. I would like to bring to your notice that one of the API i.e., Readable.from is throwing an error - "TypeError: Readable.from is not a function".

I am using Node v11.13.0

In debug mode, I found that there isn't any property accessor named - "_from_" on "_Readable_" class, it's prototype or on it's super class either(Stream).

FYI, I didn't make any tweaks to the provided example, and tried to use it as it is(screenshot attached).

If I am missing anything, please enlighten me.

Thanks in advance,
Deepak

Readable from

doc stream

Most helpful comment

Is still showing in the v10.x documentation:
https://nodejs.org/docs/latest-v10.x/api/stream.html

All 3 comments

Thanks for opening an issue! Adding version metadata to the documentation was missed in https://github.com/nodejs/node/pull/27660, it鈥檚 only been available since Node.js 12.3.0. (Node.js 11.x is unsupported at this point, by the way.)

@addaleax Thank you for the prompt response, will upgrade my Node.

Cheers!

Is still showing in the v10.x documentation:
https://nodejs.org/docs/latest-v10.x/api/stream.html

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dfahlander picture dfahlander  路  3Comments

filipesilvaa picture filipesilvaa  路  3Comments

sandeepks1 picture sandeepks1  路  3Comments

Icemic picture Icemic  路  3Comments

vsemozhetbyt picture vsemozhetbyt  路  3Comments