[@types/node] TypeError: Cannot read property 'prototype' of undefined when calling fetch #69422
Replies: 2 comments
-
Thanks for the discussion about "node", some useful links for everyone: Pinging the DT module owners: @microsoft, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @galkin, @parambirs, @eps1lon, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13, @mcollina, @Semigradsky. |
Beta Was this translation helpful? Give feedback.
-
This is a runtime error and is not related to |
Beta Was this translation helpful? Give feedback.
-
I'm trying to call fetch API from my react native app ,
this is a test I've done
useEffect(() => { fetch('https://fakestoreapi.com/products/1') .then((res) => res.json()) .then((json) => console.log(json)) .catch((err) => console.log('err', err)); }, []);
but I get this error : TypeError: Cannot read property 'prototype' of undefined
Beta Was this translation helpful? Give feedback.
All reactions