aknorw / discojs

Easiest way to use the Discogs API in Javascript/Typescript :musical_note:
https://aknorw.github.io/discojs
MIT License
62 stars 9 forks source link

Discojs is not exported by default #29

Closed iltimasd closed 1 year ago

iltimasd commented 3 years ago

Documentation has the import as follows:

  import Discojs  from "discojs";

but the above returns the following type error: TypeError: Discojs__default.default is not a constructor

current fix is to import the fn/constructor by name:

  import {Discojs}  from "discojs";
aknorw commented 3 years ago

My bad, missed this one when updating the documentation - but named export is the way now. Will change it asap.