yiisoft / yii2-bootstrap4

Yii 2 Bootstrap 4 Extension
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
216 stars 106 forks source link

Still getting error installing Bootstrap4 in advanced template #157

Closed nordicbackup closed 5 years ago

nordicbackup commented 5 years ago

This should be fixed now as both yii2-gii & yii2-debug were rewritten to be bootstrap independent. Is there something to fix in the documentation?

Originally posted by @machour in https://github.com/yiisoft/yii2-bootstrap4/issues/49#issuecomment-454206463

Looks like I should be able to install bootstrap4 based on the above work, but I'm still getting an error when I try to install it in the Advanced template. I tried setting the minimum stability to dev but got the same "requirements could not be resolved" error. How can I get this to install? I'm on yii version 2.0.21.

samdark commented 5 years ago

What error is it?

nordicbackup commented 5 years ago

Here's all of it. jQuery 3.4.1 is installed.

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

Problem 1

samdark commented 5 years ago

Do you have https://github.com/yiisoft/yii2-app-basic/blob/master/composer.json#L63 in your composer.json?

nordicbackup commented 5 years ago

Yes I do.

samdark commented 5 years ago

Seems it does not work somehow...

samdark commented 5 years ago

Trying to install it...

samdark commented 5 years ago

Just did it starting from nothing:

composer create-project --prefer-dist yiisoft/yii2-app-advanced advanced
cd advanced/
composer remove yiisoft/yii2-bootstrap
composer require yiisoft/yii2-bootstrap4

Works well.