twitchtv / igdb-api-node

Nodejs Wrapper for IGDB.com API. Requires an API key. Get one at:
https://api.igdb.com/
MIT License
128 stars 15 forks source link

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

Open cdietschrun opened 1 year ago

cdietschrun commented 1 year ago
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 commented 9 months ago

Try igdb.default, not igdb.