{"record":{"id":"4cdd45e125384b80","repo":"krayin/laravel-crm","slug":"viter-with-namespace-namespace-not-found-pleas","errorCode":null,"errorMessage":"Viter with `$namespace` namespace not found. Please add `$namespace` namespace in the `config/krayin-vite.php` file.","messagePattern":"Viter with `\\$namespace` namespace not found\\. Please add `\\$namespace` namespace in the `config/krayin-vite\\.php` file\\.","errorType":"exception","errorClass":"ViterNotFound","httpStatus":null,"severity":"error","filePath":"packages/Webkul/Core/src/Vite.php","lineNumber":20,"sourceCode":"\nnamespace Webkul\\Core;\n\nuse Illuminate\\Support\\Facades\\Vite as BaseVite;\nuse Webkul\\Core\\Exceptions\\ViterNotFound;\n\nclass Vite\n{\n    /**\n     * Return the asset URL.\n     *\n     * @return string\n     */\n    public function asset(string $filename, string $namespace = 'admin')\n    {\n        $viters = config('krayin-vite.viters');\n\n        if (empty($viters[$namespace])) {\n            throw new ViterNotFound($namespace);\n        }\n\n        $url = trim($filename, '/');\n\n        $viteUrl = trim($viters[$namespace]['package_assets_directory'], '/').'/'.$url;\n\n        return BaseVite::useHotFile($viters[$namespace]['hot_file'])\n            ->useBuildDirectory($viters[$namespace]['build_directory'])\n            ->asset($viteUrl);\n    }\n\n    /**\n     * Set krayin vite.\n     *\n     * @return mixed\n     */\n    public function set(mixed $entryPoints, string $namespace = 'admin')\n    {","sourceCodeStart":2,"sourceCodeEnd":38,"githubUrl":"https://github.com/krayin/laravel-crm/blob/13d6988cda8d69ece45ee1890effc90a7f21cdc1/packages/Webkul/Core/src/Vite.php#L2-L38","documentation":"Error \"Viter with `$namespace` namespace not found. Please add `$namespace` namespace in the `config/krayin-vite.php` file.\" thrown in krayin/laravel-crm.","triggerScenarios":"Thrown at packages/Webkul/Core/src/Vite.php:20 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":"13d6988cda8d69ece45ee1890effc90a7f21cdc1","analyzedAt":"2026-08-17T00:58:29.000Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}