为了账号安全,请及时绑定邮箱和手机立即绑定

bower-asset/typeahead.js/dist 不存在?

bower-asset/typeahead.js/dist 不存在?

PHP
动漫人物 2019-03-10 10:31:19
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: #0 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetBundle.php(185): yii\web\AssetManager->publish('/home/vagrant/y...', Array) #1 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php(268): yii\web\AssetBundle->publish(Object(yii\web\AssetManager)) #2 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetManager.php(239): yii\web\AssetManager->loadBundle('yii\\gii\\TypeAhe...', Array, true) #3 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/View.php(286): yii\web\AssetManager->getBundle('yii\\gii\\TypeAhe...') #4 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/View.php(291): yii\web\View->registerAssetBundle('yii\\gii\\TypeAhe...', NULL) #5 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle('yii\\gii\\GiiAsse...') #6 /home/vagrant/yii/test/vendor/yiisoft/yii2-gii/views/layouts/main.php(9): yii\web\AssetBundle::register(Object(yii\web\View)) #7 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/View.php(336): require('/home/vagrant/y...') #8 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/View.php(254): yii\base\View->renderPhpFile('/home/vagrant/y...', Array) #9 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(399): yii\base\View->renderFile('/home/vagrant/y...', Array, Object(yii\gii\controllers\DefaultController)) #10 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(385): yii\base\Controller->renderContent('<div class="def...') #11 /home/vagrant/yii/test/vendor/yiisoft/yii2-gii/controllers/DefaultController.php(46): yii\base\Controller->render('index') #12 [internal function]: yii\gii\controllers\DefaultController->actionIndex() #13 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #14 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #15 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('', Array) #16 /home/vagrant/yii/test/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('gii', Array) #17 /home/vagrant/yii/test/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request)) #18 /home/vagrant/yii/test/web/index.php(12): yii\base\Application->run() #19 {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的时候报了一个这样的错误, 指定目录下是有文件的
查看完整描述

1 回答

?
手掌心

TA贡献1942条经验 获得超3个赞

错误日志值的是bower-asset/typeahead.js/dist,你的截图不够准确啊。

查看完整回答
反对 回复 2019-03-18
  • 1 回答
  • 0 关注
  • 434 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信