使用 Vue JS 2 安装 Laravel Jetstream

编程入门 行业动态 更新时间:2024-10-10 07:23:20
本文介绍了使用 Vue JS 2 安装 Laravel Jetstream的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 00:32:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1145669.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:JS   Vue   Jetstream   Laravel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!