Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarle via command line is broken #533

Closed
lroche opened this issue Sep 25, 2023 · 3 comments
Closed

Yarle via command line is broken #533

lroche opened this issue Sep 25, 2023 · 3 comments

Comments

@lroche
Copy link

lroche commented Sep 25, 2023

Because maugenst/zip-a-folder#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
Copy link

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

@akosbalasko
Copy link
Owner

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

@akosbalasko
Copy link
Owner

@lroche, fixed, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants