Bower-asset/typeahead.js/dist doesn't exist?

yii\base\InvalidArgumentException: The file or directory to be published does not exist: /home/vagrant/yii/test/vendor/bower-asset/typeahead.js/dist in /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php:456
Stack trace:
-sharp0 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetBundle.php(185): yii\web\AssetManager->publish("/home/vagrant/y...", Array)
-sharp1 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php(268): yii\web\AssetBundle->publish(Object(yii\web\AssetManager))
-sharp2 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php(239): yii\web\AssetManager->loadBundle("yii\\gii\\TypeAhe...", Array, true)
-sharp3 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/View.php(286): yii\web\AssetManager->getBundle("yii\\gii\\TypeAhe...")
-sharp4 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/View.php(291): yii\web\View->registerAssetBundle("yii\\gii\\TypeAhe...", NULL)
-sharp5 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle("yii\\gii\\GiiAsse...")
-sharp6 /home/vagrant/yii/test/vendor/yiisoft/yii2-gii/views/layouts/main.php(9): yii\web\AssetBundle::register(Object(yii\web\View))
-sharp7 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/View.php(336): require("/home/vagrant/y...")
-sharp8 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile("/home/vagrant/y...", Array)
-sharp9 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile("/home/vagrant/y...", Array, Object(yii\gii\controllers\DefaultController))
-sharp10 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(385): yii\base\Controller->renderContent("<div class="def...")
-sharp11 /home/vagrant/yii/test/vendor/yiisoft/yii2-gii/controllers/DefaultController.php(46): yii\base\Controller->render("index")
-sharp12 [internal function]: yii\gii\controllers\DefaultController->actionIndex()
-sharp13 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
-sharp14 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
-sharp15 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction("", Array)
-sharp16 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction("gii", Array)
-sharp17 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
-sharp18 /home/vagrant/yii/test/web/index.php(12): yii\base\Application->run()
-sharp19 {main}
Copy Stacktrace Search Stackoverflow Search Google Exception
Invalid Argument  yii\base\InvalidArgumentException
The file or directory to be published does not exist: /home/vagrant/yii/test/vendor/bower-asset/typeahead.js/dist


gii

clipboard.png

there are files in the specified directory

Apr.07,2021

the error log value is bower-asset/typeahead.js/dist,. Your screenshot is not accurate enough.

Menu