Skip to content

I can't create object of PokeApi.. #20

@csfragsta

Description

@csfragsta

When i run the following piece of code, I get the following error:

`const Poke = new PokeAPI(options);
^

TypeError: PokeAPI is not a constructor
at Object. (F:\Discord\mybot\pogo.js:17:14)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3`

Can someone pls assist me with this issue? I am new to PokeApi..if this is not the correct api to use currently, then pls point me to correct API.

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