Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work. igdb() not a function error. #59

Open
cdietschrun opened this issue Jul 16, 2023 · 1 comment
Open

Doesn't work. igdb() not a function error. #59

cdietschrun opened this issue Jul 16, 2023 · 1 comment

Comments

@cdietschrun
Copy link

import igdb from 'igdb-api-node';
const { data } = await igdb()
.search('Halo')
.fields(['name', 'release_dates.y'])
.request('/games')
    const { data } = await igdb()
                           ^

TypeError: igdb is not a function
@garyking
Copy link

garyking commented Feb 5, 2024

Try igdb.default, not igdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants