ReferenceError: fetch is not defined

前端 未结 10 1893
闹比i
闹比i 2020-11-29 17:48

I have this error when I compile my code in node.js, how can I fix it?

RefernceError: fetch is not defined

This is the function I am doing, it is re

10条回答
  •  忘掉有多难
    2020-11-29 18:09

    Best one is Axios library for fetching. use npm i --save axios for installng and use it like fetch, just write axios instead of fetch and then get response in then().

提交回复
热议问题