akosbalasko / yarle

Yarle - The ultimate converter of Evernote notes to Markdown
https://github.com/akosbalasko/yarle
MIT License
1.42k stars 81 forks source link

Yarle via command line is broken #533

Closed lroche closed 1 year ago

lroche commented 1 year ago

Because https://github.com/maugenst/zip-a-folder/issues/49 Actually, the dependency used by Yarle zip-a-folder branch 2.x (>2.0.1) doesn't support commonjs loading anymore.

So There is a fatal error during the process while using yarle via command line:

/Users/lionel/Library/pnpm/store/v3/tmp/dlx-5142/node_modules/.pnpm/yarle-evernote-to-md@5.8.0_electron@26.2.2/node_modules/yarle-evernote-to-md/dist/utils/heptabase/zip-folder.js:4

const zip_a_folder_1 = require("zip-a-folder");

                       ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/lionel/Library/pnpm/store/v3/tmp/dlx-5142/node_modules/.pnpm/zip-a-folder@2.0.2/node_modules/zip-a-folder/dist/lib/ZipAFolder.js from /Users/lionel/Library/pnpm/store/v3/tmp/dlx-5142/node_modules/.pnpm/yarle-evernote-to-md@5.8.0_electron@26.2.2/node_modules/yarle-evernote-to-md/dist/utils/heptabase/zip-folder.js not supported. [...]  ERROR  Command failed with exit code 1: yarle yarle --configFile ./myConfig.json

Upgrade dependency zip-a-folder to v3.0.0 should fix this issue.

github-actions[bot] commented 1 year ago

Yihaa, thank you for reporting me this issue and to let me improve Yarle!

akosbalasko commented 1 year ago

Hi @lroche , oops, thanks for raising this up, I'll upgrade the dep and release a new version asap!

akosbalasko commented 1 year ago

@lroche, fixed, thank you!