fetch: fetch: window.fetch.bind(window) does not work in next.js context (incomptable type, see below)
createWebSocket: createWebSocket: (url, protocol) => new WebSocket(url, protocol), does not work, as url ctor parameter of WebSocket must not be null
error msg:
Types of parameters 'input' and 'input' are incompatible.
Type 'RequestInfo_2' is not assignable to type 'RequestInfo | URL'.
Type 'Request_2' is not assignable to type 'RequestInfo | URL'.
Type 'Request_2' is missing the following properties from type 'Request': body, bodyUsed, arrayBuffer, blob, formData
fetch:
fetch: window.fetch.bind(window)
does not work in next.js context (incomptable type, see below)createWebSocket: createWebSocket: (url, protocol) => new WebSocket(url, protocol), does not work, as url ctor parameter of WebSocket must not be null
error msg: