Hi all,
I upgraded my app to Yii 2.0.15. Upgrading through composer, I also had an upgrade of jQuery to version 3. Probably there is something not compatible with this new version of jQuery and only reverting to jQuery 2.2 everything works as expected.
I tried to downgrade jQuery using composer adding "bower-asset/jquery": "2.2.*@stable" but I got this error:
Problem 1
- The requested package bower-asset/jquery 2.2.*@stable exists as bower-asset/jquery[3.2.1, 1.12.1-patch1, 1.8.3-patch1] but these are rejected by your constraint.
Problem 2
- Installation request for bower-asset/typeahead.js ~0.11.1 -> satisfiable by bower-asset/typeahead.js[v0.11.1].
- bower-asset/typeahead.js v0.11.1 requires bower-asset/jquery >=1.7 -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1, 1.8.3-patch1] but these conflict with your requirements or minimum-stability.
Problem 3
- yiisoft/yii2 2.0.15.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.8 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.15.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.15 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.14.2 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.14.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.14 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13.3 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13.2 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.12.2 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.12.1 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.12 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.11.2 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.11.1 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.11 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.10 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- Installation request for yiisoft/yii2 ~2.0.5 -> satisfiable by yiisoft/yii2[2.0.10, 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.12, 2.0.12.1, 2.0.12.2, 2.0.13, 2.0.13.1, 2.0.13.2, 2.0.13.3, 2.0.14, 2.0.14.1, 2.0.14.2, 2.0.15, 2.0.15.1, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
C:\Users\Leo\Documents\www\Designazioni>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package bower-asset/jquery 2.2.* exists as bower-asset/jquery[3.2.1, 1.12.1-patch1, 1.8.3-patch1] but these are rejected by your constraint.
Problem 2
- Installation request for bower-asset/typeahead.js ~0.11.1 -> satisfiable by bower-asset/typeahead.js[v0.11.1].
- bower-asset/typeahead.js v0.11.1 requires bower-asset/jquery >=1.7 -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1, 1.8.3-patch1] but these conflict with your requirements or minimum-stability.
Problem 3
- yiisoft/yii2 2.0.15.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.8 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.15.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.15 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.14.2 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.14.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.14 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13.3 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13.2 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13.1 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.13 requires bower-asset/jquery 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[3.2.1, 1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.12.2 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.12.1 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.12 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.11.2 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.11.1 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.11 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- yiisoft/yii2 2.0.10 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> satisfiable by bower-asset/jquery[1.12.1-patch1] but these conflict with your requirements or minimum-stability.
- Installation request for yiisoft/yii2 ~2.0.5 -> satisfiable by yiisoft/yii2[2.0.10, 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.12, 2.0.12.1, 2.0.12.2, 2.0.13, 2.0.13.1, 2.0.13.2, 2.0.13.3, 2.0.14, 2.0.14.1, 2.0.14.2, 2.0.15, 2.0.15.1, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Could you please help me to figure out how to downgrade jQuery on my installation or understand which is the incompatible component I’m using?
Below my composer.json:
"type": "project",
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"bower-asset/typeahead.js": "~0.11.1",
"yiisoft/yii2": "~2.0.5",
"yiisoft/yii2-bootstrap": "dev-master",
"yiisoft/yii2-swiftmailer": "~2.0.0",
"kartik-v/yii2-nav-x": "dev-master",
"bower-asset/jquery": "2.2.*@stable",
"kartik-v/yii2-widgets": "*",
"kartik-v/yii2-date-range": "*",
"kartik-v/yii2-grid": "^3.1",
"kartik-v/yii2-mpdf": "^1.0",
"kartik-v/yii2-label-inplace": "*",
"kartik-v/yii2-field-range": "*",
"dektrium/yii2-user": "^0.9.12",
"kartik-v/yii2-sortable-input": "*",
"spipu/html2pdf": "^5.0",
"kartik-v/yii2-checkbox-x": "*",
"uran1980/yii2-scroll-to-top": "dev-master",
"cybercog/yii2-google-analytics": "^0.3.2"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0.0",
"yiisoft/yii2-gii": "~2.0.0",
"yiisoft/yii2-faker": "~2.0.0",
"codeception/base": "^2.2.3",
"codeception/verify": "~0.3.1",
"codeception/specify": "~0.4.3"
},
Thank you!!