You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it is trying to load the commonJS Kitsu package instead of the ESM Kitsu package.
Legacy CommonJS exports cannot be imported correctly by ESM without using that * syntax as a workaround (not the eval part)
However, you should be able to force it to use the .mjs version if your compiler is refusing to use the correct version of the package (you're using ESM syntax, so it should be loading ESM)
The package is a native ES module package, so I've never encountered this wonky behaviour.
I'm attempting to use Kitsu 10.1.5 with Nest.js on node 22.6.0 with TypeScript 5.7.2.
and getting the following error:
After some fiddling I was able to get it work with arguably one of the worst hacks of modern history:
The text was updated successfully, but these errors were encountered: