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

Add espree, esutils, and natural-compare to dependencies #20

Closed

Conversation

keegan-lillo
Copy link

Thanks for the awesome plugin!

However, I ran into the following error when using it in a Yarn 2 project.

Error: Failed to load plugin 'sort-keys-fix' declared in '.eslintrc.js': eslint-plugin-sort-keys-fix tried to access esutils, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

I have added these to the package.json. I mirrored exactly the versions that the require calls were actually resolving to, so this is why there are no changes to the yarn.lock file.

In the mean time, Yarn 2 users can add the following to their .yarnrc.yml

packageExtensions:
  [email protected]:
    dependencies:
      esutils: '^2.0.2'
      espree: '^6.1.2'
      natural-compare: '^1.4.0'

https://yarnpkg.com/configuration/yarnrc#packageExtensions

@leo-buneev
Copy link
Owner

Thank you, and apologies for long delay.
Merged in #23

@leo-buneev leo-buneev closed this Aug 2, 2021
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

Successfully merging this pull request may close these issues.

2 participants