-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
@typescript-eslint/parser
breaks XO
#555
Comments
// @Richienb I think this is related to recent changes as it only happened when upgrading XO. |
I wonder why this problem only appears on Node.js 12 and 14 but not on 16. Perhaps a different module resolution algorithm is actually able to find the |
I think I have figured it out. Node.js 16 passes because it has npm 7 which install peer dependencies by default. I'm hoping xojs/eslint-config-xo-typescript@2e16d51 will fix the issue on other Node.js versions. |
Did not work... |
@Richienb We need to find a workaround for now. npm 6 will be with us for as long as Node.js 14, which means years. One idea I had was to add a Related issue: typescript-eslint/typescript-eslint#828 |
@sindresorhus has funded $54.00 to this issue.
|
I think a solution to this problem would be to ship |
I dug waaaaaaay too deep into this and can now say why this error happens: The part of npm 6.x that's responsible for deduping the three is In that function there are a couple of checks to see if a module can be added earlier, and one of those checks are a check for conflicting binaries. It bails on Since I removed There is a PR to solve this in If that PR gets merged and released, then as soon as Though: Especially considering that The solutions to that is as said in previous comment: |
Since this isn't a browser-based tool, it could probably work to add them to |
@voxpelli That is some incredible investigation. Thanks for looking into this. 🙌 |
I think we should use |
@sindresorhus I have created a PR that should make this work 👍 |
@sindresorhus has rewarded $48.60 to @voxpelli. See it on IssueHunt
|
https://github.com/sindresorhus/p-cancelable/runs/2711102803?check_suite_focus=true
IssueHunt Summary
voxpelli has been rewarded.
Backers (Total: $54.00)
Submitted pull Requests
Tips
The text was updated successfully, but these errors were encountered: