DEV Community

Discussion on: Progress Indicator With Fetch

Collapse
 
ahmednrana profile image
Rana Ahmed

Doesnt seem to be working with node-fetch
let response = await fetch('api.github.com/repos/javascripttut...);

const reader = response.body.getReader();

This gives error -> Property 'getReader' does not exist on type 'ReadableStream'.
Collapse
 
samthor profile image
Sam Thorogood

I don't believe node-fetch supports this. Read more.