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

ES modules fail to be imported during node.js dynamic analysis #982

Open
maxfisher-g opened this issue Dec 18, 2023 · 0 comments
Open

ES modules fail to be imported during node.js dynamic analysis #982

maxfisher-g opened this issue Dec 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@maxfisher-g
Copy link
Contributor

Around 2k NPM packages per day fail to be analyzed properly due to import errors:

The error messages are in 2 forms, for example:

  1. Failed to import @versini/ui-components: Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/@versini/ui-components/dist/index.js from /usr/local/bin/analyze-node.js not supported.
  2. Failed to import isolate-package: Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/isolate-package/dist/index.mjs not supported.

(the difference is that the first variant specifies from /usr/local/bin/analyze-node.js, and usually occurs when attempting to import an index.js file; the second variant is when importing .mjs files)

@maxfisher-g maxfisher-g added the bug Something isn't working label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant