[英]Laravel - Vue - Components not updating
I have a fresh installation of laravel 5.4. 我重新安装了laravel 5.4。
I have successfully created a new component and displayed it correctly. 我已经成功创建了一个新组件并正确显示了它。
I use npm run watch
and my .vue files get compiled correctly. 我使用npm run watch
和我的.vue文件得到正确编译。
But now, any changes I make to the .vue files do not get updated . 但是现在,我对.vue文件所做的任何更改都不会更新 。
I purposely made errors to them to see if they compiled but they failed, so I conclude that the watch command successfuly sees changes made to them, on the other hand, nothing updates in the browser (only blade files update). 我故意向他们出错,以查看它们是否编译但失败了,因此我得出结论,watch命令可以成功看到对其所做的更改,另一方面,浏览器中没有任何更新(仅刀片文件更新)。
Any ideas what this could come from ? 任何想法这可能来自什么?
PS: I tried php artisan cache:clear
but no success. PS:我尝试过php artisan cache:clear
但没有成功。
Silly, the name of the component had a dash in it: 愚蠢的是,该组件的名称中带有短划线:
Vue.component('cardtest-component', require('./components/CardTestComponent.vue'));
It was just a typo. 这只是一个错字。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.