Invalid path alias: @test

What is wrong with the aliases array below definition in my configuration file. I am using yii 2.09 advanced template and this is in the common main.php config file. My themes alias always work regardless of the location in the array. However, none of the other aliases in the array is getting registered. Is there something simply I am missing?

‘aliases’ => [

    '@themes' => '@app/../themes',

'@uploads' => '@app/../uploads',

'@test' => '@app/../themes',



I don’t see any obvious problem. You can try to test it on some separate place:

Yii::setAlias('@uploads', '@app/../uploads');


Thanks. That worked! It was my silly mistake. I was modifying the backend\config\main.php all this time and thought it was the common\config\main.php.