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

ERR_REQUIRE_ESM occurs when just invoke fontmin #111

Open
aztack opened this issue Nov 17, 2023 · 1 comment
Open

ERR_REQUIRE_ESM occurs when just invoke fontmin #111

aztack opened this issue Nov 17, 2023 · 1 comment

Comments

@aztack
Copy link

aztack commented Nov 17, 2023

Error occurs when just invoke fontmin:
Node 16.15.1

/Users/username/.config/yarn/global/node_modules/fontmin/cli.js:13
var meow = require('meow');
           ^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/username/.config/yarn/global/node_modules/fontmin/node_modules/meow/index.js from /Users/username/.config/yarn/global/node_modules/fontmin/cli.js not supported.
Instead change the require of index.js in /Users/username/.config/yarn/global/node_modules/fontmin/cli.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/Users/username/.config/yarn/global/node_modules/fontmin/cli.js:13:12) {
  code: 'ERR_REQUIRE_ESM'
}
@qiutian00
Copy link

also come this propblem

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

No branches or pull requests

2 participants