Open Zaporozhec7 opened 7 years ago
Seems that was wrong solution, although exception dissapear, appear many strange bugs.
If that will help to fix that issue (exception), seems it caused by this package - https://github.com/uxsolutions/bootstrap-datepicker
I had the same issue, also bootstrap-datepicker (v1.7.1) I added this simple code as a dirty workaround for now:
(composer-asset-plugin/Converter/SemverConverter.php line 65)
if ($range === '>=1.1.0, <2.0') {
$range = '>=1.1.0,<2.0';
}
I'm not sure if it's a wrong range used by bootstrap-datepicker or if it should be changed in composer-asset-plugin..?
If it works for NPM or Bower, it's a bug.
So?
If you have a patch, I take. It happens in the SemverConverter class
When I try to update packages, was faced with this issue:
[UnexpectedValueException]
Could not parse version constraint >=1.1.0,,<2.0: Invalid version string "1.1.0,,<2.0"
While trying to find cause of this exception i was found that it was caused by whitespace after comma. And i'm not sure, but seems that constraint was created from constraint "^3.0.1".
In my case, as temporary solution, was help adding:
$range = str_replace(', ', ',', $range);
After this line