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
Not sure what's going on here, but I can't seem to just import the LastFM class, like it says in the README.
I have to construct the class as new LastFMTyped.default(apiKey), which doesn't match the typings.
Possibly because I'm using ESM?
The text was updated successfully, but these errors were encountered:
Seems to be an ESM issue yeah. Not entirely sure how to solve this elegantly without breaking backwards-compatibility.
Some seem to suggest adding an additional named import, but it sounds like that might break some stuff with nextjs, though I didn't read up on the details.
That said, I downloaded your repo, and I am struggling to fully reproduce your issue.
On my end I still have the issue of needing to specify LastFMTyped.default, but the default does match the typings on both my macbook and my windows machine. Very odd.
Are you still able to reproduce the typing issue in a freshly downloaded copy?
Okay, weird. I can't reproduce this issue either anymore. Maybe there was an update to the TypeScript extension? FWIW, I still think this isn't intended. I believe Node has a way to specify separate CommonJS and ESM exports in the package.json
Not sure what's going on here, but I can't seem to just import the
LastFM
class, like it says in the README.I have to construct the class as
new LastFMTyped.default(apiKey)
, which doesn't match the typings.Possibly because I'm using ESM?
The text was updated successfully, but these errors were encountered: