Warm tip: This article is reproduced from serverfault.com, please click

vue.js-全新安装的laravel上没有vue组件

(vue.js - No vue component on fresh installed laravel)

发布于 2019-09-19 07:16:03

我已经在机器上安装了一个新的Laravel。在阅读有关laravel vue的教程时,他们已经在其计算机上的一个名为“ ExampleComponent.vue”的vue组件下,

资源/资产/组成

但是当我查看资源文件夹时,我没有components文件夹,但是当我看到package.json时,上面已经安装了vue以及vue-router。

我也有ExampleComponent.vue,但是在供应商文件夹中。我是否以错误的方式安装了laravel或vue?

Questioner
Mark Ciso
Viewed
11
matticustard 2019-09-19 15:41:49

使用Laravel 6,JavaScript和CSS脚手架被移到了单独的程序包中。
https://laravel.com/docs/master/frontend

composer require laravel/ui --dev

请参阅链接的资源以配置特定项目。