mma-api icon indicating copy to clipboard operation
mma-api copied to clipboard

TypeError: querystring.escape is not a function

Open grgicpetar opened this issue 4 years ago • 0 comments

Hey,

I just tried for the first time using your api, but I could not do it correctly. This is my code in React:

import React from "react";
import mma from "mma";

function App() {
    mma.fighter("Jon Jones", (data: any) => {
      console.log(data);
    });
  return <div className="App">ss</div>;
}

export default App;

When running the app I get the following error: TypeError: querystring.escape is not a function

Keep in mind, I am using typescript.

grgicpetar avatar Oct 22 '20 10:10 grgicpetar