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

Version number mismatch #7

Open
malcomio opened this issue Nov 1, 2023 · 1 comment · May be fixed by #8
Open

Version number mismatch #7

malcomio opened this issue Nov 1, 2023 · 1 comment · May be fixed by #8

Comments

@malcomio
Copy link

malcomio commented Nov 1, 2023

When trying to use patch-package to address #4 in my project, I get the following error:

patch-package 8.0.0
Applying patches...
Error: Version string '0.1.0post1' cannot be parsed from /path/to/node_modules/leaflet-layervisibility/package.json

I think that it may be happening because NPM has version 0.1.0-post1 (with a hyphen), but package.json and package-lock.json reference version 0.1.0post1 (without a hyphen)

malcomio added a commit to malcomio/leaflet-layervisibility that referenced this issue Nov 1, 2023
@malcomio malcomio linked a pull request Nov 1, 2023 that will close this issue
@malcomio
Copy link
Author

malcomio commented Nov 1, 2023

it seems that the two versions only have trivial differences, so I've been able to work around this by specifying version 0.1.0

0.1.0...0.1.0post1

npm install leaflet-layervisibility@0.1.0 --save

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 a pull request may close this issue.

1 participant