{"record":{"id":"0abd6f43e9697eb1","repo":"yiisoft/yii2","slug":"please-specify-baseurl-for-the-name-target","errorCode":null,"errorMessage":"Please specify 'baseUrl' for the '$name' target.","messagePattern":"Please specify 'baseUrl' for the '\\$name' target\\.","errorType":"console","errorClass":"yii\\console\\Exception","httpStatus":null,"severity":"error","filePath":"framework/console/controllers/AssetController.php","lineNumber":326,"sourceCode":"                        $referenced[$bundle] = $name;\n                    } else {\n                        throw new Exception(\"Target '{$referenced[$bundle]}' and '$name' cannot contain the bundle '$bundle' at the same time.\");\n                    }\n                }\n            }\n        }\n        if (isset($all)) {\n            $targets[$all]['depends'] = array_diff(array_keys($registered), array_keys($referenced));\n        }\n\n        // adjust the 'depends' order for each target according to the dependency order of bundles\n        // create an AssetBundle object for each target\n        foreach ($targets as $name => $target) {\n            if (!isset($target['basePath'])) {\n                throw new Exception(\"Please specify 'basePath' for the '$name' target.\");\n            }\n            if (!isset($target['baseUrl'])) {\n                throw new Exception(\"Please specify 'baseUrl' for the '$name' target.\");\n            }\n            usort($target['depends'], function ($a, $b) use ($bundleOrders) {\n                if ($bundleOrders[$a] == $bundleOrders[$b]) {\n                    return 0;\n                }\n\n                return $bundleOrders[$a] > $bundleOrders[$b] ? 1 : -1;\n            });\n            if (!isset($target['class'])) {\n                $target['class'] = $name;\n            }\n            $targets[$name] = Yii::createObject($target);\n        }\n\n        return $targets;\n    }\n\n    /**","sourceCodeStart":308,"sourceCodeEnd":344,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/controllers/AssetController.php#L308-L344","documentation":"Error \"Please specify 'baseUrl' for the '$name' target.\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/controllers/AssetController.php:326 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}