-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Can't require("p-limit") #57
Comments
Summary: You either use ESM in your project or the version |
elenatanasoiu
added a commit
to github/vscode-codeql
that referenced
this issue
Oct 12, 2022
Version 4.0 has dropped support for Node 16 / CommonJS so we'd have to first upgrade to ESM before we could use a newer version of this package. This would involve updating package.json with: { "type": "module" } For now let's use the package that just works. We can think of upgrading as a separate issue. See: - sindresorhus/p-limit#63 - https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c - sindresorhus/p-limit#57
elenatanasoiu
added a commit
to github/vscode-codeql
that referenced
this issue
Oct 13, 2022
Version 4.0 has dropped support for Node 16 / CommonJS so we'd have to first upgrade to ESM before we could use a newer version of this package. This would involve updating package.json with: { "type": "module" } For now let's use the package that just works. We can think of upgrading as a separate issue. See: - sindresorhus/p-limit#63 - https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c - sindresorhus/p-limit#57
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to load this module using:
const pLimit = require("p-limit");
However when I do that I get the following error:
Can someone please help?
Thanks!
The text was updated successfully, but these errors were encountered: