| 739791) |
|
| Casimira |
| casimirakelliher527(at)yahoo.com |
Ort: Aratula |
|
My first try has been with isomorphic-fetch and @types/isomorphic-fetch.
I'm unsure whether the sorts are complete, however they didn't bring any international variable (they needs to be bringing fetch, should not they?). Do I want "dom"? Apparently, with the dom lib it does compile and work on each ?, but I received no management on whether or not it is going to really work on Node.
I imply, it's going to compile whether or not I import 'isomorphic-fetch', but when I miss it in will fail on Node without discover. Also, Node is just not "dom", no matter me wanting to help browsers as properly. My second try has been with whatwg-fetch.
I've also tried with different related libraries similar to fetch-ponyfill, but this one would not even have types available for TypeScript. It's 2023 and isomorphic-fetch still would not work for me until I add the dom library to my tsconfig (which is a no go for server-facet).
I just do not get it - is not the purpose of this to bring fetch both server-aspect and browser-side? Bottom line: It's a multitude.
|