You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using parseResolution from @yarnpkg/parsers I would expect to be able to parse any resolution field in the yarn.lock file, but this doesn't work when there is a patch involved.
To reproduce
import{parseResolution}from'@yarnpkg/parsers'// resolution taken straight from yarn.lockconstresolution="@apollo/client@patch:@apollo/client@npm%3A3.4.7#~/.yarn/patches/@apollo-client-npm-3.4.7-96e3ad79c6.patch::version=3.4.7&hash=fa051c"parseResolution(resolution)
Throws this error:
SyntaxError: Expected [^/] or end of input but "/" found (line 1, column 48)
Uh oh!
There was an error while loading. Please reload this page.
Self-service
Describe the bug
Using
parseResolution
from@yarnpkg/parsers
I would expect to be able to parse anyresolution
field in the yarn.lock file, but this doesn't work when there is a patch involved.To reproduce
Throws this error:
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: