igdb-api-node icon indicating copy to clipboard operation
igdb-api-node copied to clipboard

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

Open cdietschrun opened this issue 2 years ago • 1 comments

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

cdietschrun avatar Jul 16 '23 12:07 cdietschrun

Try igdb.default, not igdb.

garyking avatar Feb 05 '24 16:02 garyking