-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
NodeJS 13: Failed to load plugin '@typescript-eslint' #1944
Comments
Could you please ensure you use the issue template for future issues. In this instance, there are many version numbers that are missing that might help here. I am unable to repro this. Could you please provide a repro repo? |
Hi, Creating a new React app in xxxxxxx\Temp\testing. Installing packages. This might take a couple of minutes. npm ERR! code ETARGET npm ERR! A complete log of this run can be found in: |
No - that's just how npm outputs its error message, with a full stop at the end of the sentence. Chances are if your install is failing, it's due to a dodgy cache. |
@bradzacher Sorry for the template, I didn't get which to choose and created and issue from scratch. Will be more accurate next time. Here is the repo Fails with node v13.13.0. Works on v12.16.1. Thank you. |
It's very strange
And |
The rule whitelists built in methods that are known to be pre bound by design. It does this dynamically by getting the property names of various builtins. typescript-eslint/packages/eslint-plugin/src/rules/unbound-method.ts Lines 21 to 95 in b609b43
The list of global names it uses have been chosen to work with node 8.10.0 or higher. The only way you can get the error you've listed is if one of the global names in the list does not exist, which should not be possible. |
Hah, I have exact the same issue also on Gentoo!
|
I just tried with the prebuild downloaded LTS node version and it works :(. So it's either the Gentoo version is not compatible or some |
I don't have a linux box to test this on. |
@bradzacher From the code snippet you've posted it seems like So, you are right, it's not on your end. Thank you for your help and patience. For those, who has the same issue. |
The eslint stops working after updating from node v12.16.1 to v13.13.0.
.eslintrc.cjs
tsconfig.json
package.json
The output
The text was updated successfully, but these errors were encountered: