Error after add Package using composer

Hello

I followed steps from this tutorial http://www.yiiframework.com/doc-2.0/guide-tutorial-advanced-app.html . Yii2 advanced template . But after i configure the composer "composer.json" and run the command " composer update --prefer-dist " , I got the following error .before this the app is working for me.

Unknown Method – yii\base\UnknownMethodException

Calling unknown method: yii\web\UrlManager::addRules()

Help me .

same problem :(

any help?

dear Rajith R, could you solve it?

same problem with me install composer global require "fxp/composer-asset-plugin:1.0.0"

in my case, solved in this way, first run these commands:




composer global require "fxp/composer-asset-plugin:1.0.*@dev"

composer update



when finished, back up your vendor folder and composer.lock from your project and then delete them, after that run this command:




composer install



hope work well

Thank you