Jetstream默认使用Vue JS版本3安装惯性,尽管我们可以在安装惯性时选择惯性版本。
我计划使用的Vue插件很少没有Vue3支持。那么用Vue JS 2安装Jetstream是可能的吗?
发布于 2021-04-18 16:44:37
是的,您可以使用旧的jetstream版本。jetstream版本2.2.0支持vue3之前,它将支持vue2。但它可能含有一些虫子。要安装带有vue2的jetstream,请在终端上运行注释
laravel new hello
cd hello编辑composer.json "laravel/jetstream": "^2.1",,然后在终端上运行composer install; php artisan jetstream:install inertia。最后在终端上运行npm install; npm run dev; php artisan migrate。
发布于 2021-05-22 22:25:17
@bapi是对的,您需要使用一个旧版本的Laravel Jetstream。
您需要使用确切的jetstream,它是"laravel/jetstream": "2.1.4",而不是"laravel/jetstream": "^2.1",后者用vuejs2安装inertiajs。
参见正式回购https://github.com/laravel/jetstream/blob/2.x/CHANGELOG.md中的changelogs
发布于 2021-09-20 21:49:03
@bapi是不对的@kikuyu1有更好的答案,请按照以下步骤解决新鲜项目中的问题
运行composer update
php artisan jetstream:install inertia
npm install
npm run dev
php artisan migrate的
laravel/jetstream": "2.1.4"添加到composer.json文件"require"依赖项现在你的Laravel 8项目应该用vue 2安装
https://stackoverflow.com/questions/67149335
复制相似问题