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
I think it would be nice to have it work for both CommonJS require and ES Modules import. At least, the current readme implies you can do a require but you'll actually get a ERR_REQUIRE_ESM error when you follow the example code. As a workaround, one can do a dynamic import or change the package.json's type to module when using this library (what I did for my script).
I already generated my EPUBs and have imported them on my Kobo, thank you for your work on this fork!
The text was updated successfully, but these errors were encountered:
I think it would be nice to have it work for both CommonJS
require
and ES Modulesimport
. At least, the current readme implies you can do arequire
but you'll actually get aERR_REQUIRE_ESM
error when you follow the example code. As a workaround, one can do a dynamic import or change thepackage.json
'stype
tomodule
when using this library (what I did for my script).I already generated my EPUBs and have imported them on my Kobo, thank you for your work on this fork!
The text was updated successfully, but these errors were encountered: