You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Polly}from'@pollyjs/core';import{defaultasXHRAdapter}from'@pollyjs/adapter-xhr';importFetchAdapterfrom'@pollyjs/adapter-fetch';import{defaultasNodeHTTPAdapter}from'@pollyjs/adapter-node-http';// Register the xhr adapter so its accessible by all future polly instancesPolly.register(XHRAdapter);Polly.register(FetchAdapter);Polly.register(FetchAdapter);
I'm getting the following error:
Argument of type 'typeof import("/my_project/node_modules/@pollyjs/adapter-xhr/types")' is not assignable to parameter of type 'Newable'.\n Type 'typeof import("/my_project/node_modules/@pollyjs/adapter-xhr/types")' provides no match for the signature 'new (...args: any[]): any'.