使用 Vue JS 2 安装 Laravel Jetstream [英] Install Laravel Jetstream with Vue JS 2

查看:29
本文介绍了使用 Vue JS 2 安装 Laravel Jetstream的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jetstream 默认安装了 Vue JS 版本 3 的惯性,尽管我们可以在安装惯性时选择惯性版本.

Jetstream by default installs inertia with Vue JS version 3 even though we can select the inertia version when just installing Inertia.

我计划使用的少数 Vue 插件仍然不支持 Vue3.那么是否可以使用 Vue JS 2 安装 Jetstream?

Few of the Vue plugins I have planned to use still do not have Vue3 support. So is it possible to install Jetstream with Vue JS 2?

推荐答案

是的,您可以使用旧的 jetstream 版本.jetstream 2.2.0 版支持 vue3,之前它将支持 vue2.但它可能包含一些错误.在终端上用 vue2 运行注释来安装 jetstream

yes, you can use old jetstream version. jetstream version 2.2.0 support with vue3 before that it will support vue2. But it might contain some bugs. To install jetstream with vue2 run comment on terminal

laravel new hello
cd hello

edit composer.json laravel/jetstream":^2.1",然后运行 ​​composer install;php artisan jetstream:在终端上安装惯性.最后运行 npm install;npm 运行开发;php artisan migrate 在终端上.

edit composer.json "laravel/jetstream": "^2.1", then run composer install; php artisan jetstream:install inertia on terminal. And finally run npm install; npm run dev; php artisan migrate on terminal.

这篇关于使用 Vue JS 2 安装 Laravel Jetstream的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆