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

Fix npm ERESOLVE and EJSONPARSE in package.json #23

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

Queue-ri
Copy link
Contributor

@Queue-ri Queue-ri commented Dec 17, 2021

Hi, thanks for the work. I love your sass plugin.

This PR resolves two npm errors:

  • ERESOLVE
  • EJSONPARSE

Commit 92a4884 resolves ERESOLVE.

npm 7 doesn't allow dependency conflict by default, but the peer dependency of @docusaurus/core in package.json has a conflict. As you know, docusaurus v2 is not officially released yet; it is still in beta release. Reflecting a high demand(#19) of beta users, I fixed semver from ^2.0.0 to ^2.0.0-beta to handle the range of ^2.0.0 + prereleases of 2.0.0. I know the conflict can be ignored locally with --legacy-peer-deps option, however, it would be better to patch this since Dependabot can't PR @docusaurus/core and the most docusaurus plugins handle beta versions.

Commit d7cb7fd resolves EJSONPARSE.

JSON doesn't allow trailing commas in spec but there's a single trailing comma in package.json which causes EJSONPARSE. Fortunately, this bug is not included in v0.2.1 release. It is from the commit 287fcf2, so IMHO this should be fixed before the next release.

This PR closes #19.

Copy link

@silverqx silverqx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to merge this, looks good to me.

@wjohnsto
Copy link

Is it possible to get this merged? I'm not sure how the peer dependency for docusaurus core was set to ^2.0.0 as ^2.0.0 doesn't exist yet.

@Queue-ri
Copy link
Contributor Author

@rlamana Could you merge this if there's no problem?

@rlamana rlamana merged commit c195399 into rlamana:master Jan 24, 2022
@rlamana
Copy link
Owner

rlamana commented Jan 24, 2022

@Queue-ri merged, thanks for this PR!

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.

Problem with dependency tree with npm 7
4 participants