Skip to content

TypeError: querystring.escape is not a function #8

Description

@grgicpetar

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions