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

Bootstrap5 #476

Open
srakl opened this issue Sep 17, 2022 · 4 comments
Open

Bootstrap5 #476

srakl opened this issue Sep 17, 2022 · 4 comments

Comments

@srakl
Copy link

srakl commented Sep 17, 2022

I added "yiisoft/yii2-bootstrap5": "*" to composer and when i ran composer update I get

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - 2amigos/yii2-usuario[1.1.0, ..., 1.5.1] require yiisoft/yii2-bootstrap ^2.0 -> satisfiable by yiisoft/yii2-bootstrap[2.0.0, ..., 2.0.11].
    - 2amigos/yii2-usuario[1.0.0, ..., 1.0.13] require yiisoft/yii2-bootstrap ^2.0.0 -> satisfiable by yiisoft/yii2-bootstrap[2.0.0, ..., 2.0.11].
    - yiisoft/yii2-bootstrap[2.0.9, ..., 2.0.11] require bower-asset/bootstrap 3.4.* | 3.3.* | 3.2.* | 3.1.* -> satisfiable by bower-asset/bootstrap[v3.1.0, ..., v3.4.1].
    - yiisoft/yii2-bootstrap[2.0.1, ..., 2.0.8] require bower-asset/bootstrap 3.3.* | 3.2.* | 3.1.* -> satisfiable by bower-asset/bootstrap[v3.1.0, ..., v3.3.7].
    - yiisoft/yii2-bootstrap 2.0.0 requires bower-asset/bootstrap 3.2.* | 3.1.* -> satisfiable by bower-asset/bootstrap[v3.1.0, v3.1.1, v3.2.0].
    - You can only install one version of a package, so only one of these can be installed: bower-asset/bootstrap[v3.1.0, ..., v3.4.1, v4.0.0, ..., v4.6.2, v5.0.0, ..., v5.2.1].
    - yiisoft/yii2-bootstrap5[2.0.1, ..., 2.0.3] require bower-asset/bootstrap ^5.1.0 -> satisfiable by bower-asset/bootstrap[v5.1.0, ..., v5.2.1].
    - Root composer.json requires yiisoft/yii2-bootstrap5 * -> satisfiable by yiisoft/yii2-bootstrap5[2.0.1, 2.0.2, 2.0.3].
    - Root composer.json requires 2amigos/yii2-usuario ~1.0 -> satisfiable by 2amigos/yii2-usuario[1.0.0, ..., 1.5.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

How do i get it to work with bootstrap 5? Any bootstrap5 support?

@maxxer
Copy link
Collaborator

maxxer commented Sep 19, 2022

There's ongoing work from different contributors about implementing other BS versions. The most up to date you can get is on #437.

BS5 assets for usuario are still missing, tough

@srakl
Copy link
Author

srakl commented Sep 19, 2022

Thank you for the info

@Wilcodejongh
Copy link

Hello all.

I have the same problem. I want to install a clean version of yii2 with y112-usuario.
What is the best way to do this?
Default i get a new version wit BS5?
composer create-project --prefer-dist yiisoft/yii2-app-basic /var/home/www/
is there a easy way to do this. and do you know when there is a update for this problem.
Thanks for helping.
Wilco

@TimoB2005
Copy link

Hello all.

I have the same problem. I want to install a clean version of yii2 with y112-usuario. What is the best way to do this? Default i get a new version wit BS5? composer create-project --prefer-dist yiisoft/yii2-app-basic /var/home/www/ is there a easy way to do this. and do you know when there is a update for this problem. Thanks for helping. Wilco

You need to change the Bootstrap Version to Bootstrap 4...

Change the assets/AppAsset.php to Bootstrap 4 and install Bootstrap 4 via Composer.

Now you need to Change a few views from bootstrap 5 to 4

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

No branches or pull requests

4 participants