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

fix: refactor cli.js to esm #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

meowtec
Copy link

@meowtec meowtec commented Sep 12, 2023

No description provided.

@meowtec
Copy link
Author

meowtec commented Sep 12, 2023

@kekee000 take a look at this?

@C0rn3j
Copy link

C0rn3j commented Mar 27, 2024

[0] % fontmin --help
/usr/lib/node_modules/fontmin/cli.js:13
var meow = require('meow');
           ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/lib/node_modules/fontmin/node_modules/meow/index.js from /usr/lib/node_modules/fontmin/cli.js not supported.
Instead change the require of index.js in /usr/lib/node_modules/fontmin/cli.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/usr/lib/node_modules/fontmin/cli.js:13:12) {
  code: 'ERR_REQUIRE_ESM'
}

Node.js v21.7.1

Without this PR, I get this issue on 1.0.1.

@kekee000 friendly second ping to hopefully get this sorted

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

Successfully merging this pull request may close these issues.

None yet

2 participants