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

Tests failing #523

Open
LunaticMuch opened this issue Apr 3, 2023 · 4 comments
Open

Tests failing #523

LunaticMuch opened this issue Apr 3, 2023 · 4 comments

Comments

@LunaticMuch
Copy link

Wondering if this happens to me only... tests are failing with the current version in master

> [email protected] test
> npm run lint && ./bin/cli.js || echo Exit Status: $?.


> [email protected] lint
> xo ./lib/*.js

/Users/stefano/_GITHUB/npm-check/lib/cli.js:4
const meow = require('meow');
             ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/stefano/_GITHUB/npm-check/node_modules/meow/index.js from /Users/stefano/_GITHUB/npm-check/lib/cli.js not supported.
Instead change the require of index.js in /Users/stefano/_GITHUB/npm-check/lib/cli.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/Users/stefano/_GITHUB/npm-check/lib/cli.js:4:14)
    at Object.<anonymous> (/Users/stefano/_GITHUB/npm-check/bin/cli.js:9:12) {
  code: 'ERR_REQUIRE_ESM'
}
Exit Status: 1.
@liujiajun1994
Copy link

同问

@likaihua
Copy link

I have the same problem.

@likaihua
Copy link

Wondering if this happens to me only... tests are failing with the current version in master

> [email protected] test
> npm run lint && ./bin/cli.js || echo Exit Status: $?.


> [email protected] lint
> xo ./lib/*.js

/Users/stefano/_GITHUB/npm-check/lib/cli.js:4
const meow = require('meow');
             ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/stefano/_GITHUB/npm-check/node_modules/meow/index.js from /Users/stefano/_GITHUB/npm-check/lib/cli.js not supported.
Instead change the require of index.js in /Users/stefano/_GITHUB/npm-check/lib/cli.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/Users/stefano/_GITHUB/npm-check/lib/cli.js:4:14)
    at Object.<anonymous> (/Users/stefano/_GITHUB/npm-check/bin/cli.js:9:12) {
  code: 'ERR_REQUIRE_ESM'
}
Exit Status: 1.

Have you solved your problem ?

@LunaticMuch
Copy link
Author

LOL I should actually triple check now...too long time has passed.

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

3 participants