将项目从 Vue2 升级到 Vue3 的最佳方式
Best way to upgrade project from Vue2 to Vue3
我想将我的项目升级到 vue3
这是一个symfony
前端使用vue作为独立组件的应用
我以前从未进行过重大升级,不太确定最好的程序是什么?
我应该卸载 vue2
然后安装 vue3
吗?
我应该只安装 vue3
吗?
我应该直接修改我的 package.json
吗?
"dependencies": {
"axios": "^0.20.0",
"elm-pep": "^1.0.6",
"moment": "^2.27.0",
"postcss-loader": "^3.0.0",
"raw-loader": "^4.0.1",
"svg-url-loader": "^6.0.0",
"toastr": "^2.1.4",
"vue": "^2.6.12",
"vue-date-pick": "^1.4.1",
"vue-material-design-icons": "^4.9.0",
"vue2-editor": "^2.10.2",
"vuelayers": "^0.12.0-dev.9"
}
INFO
We are still working on a dedicated Migration Build of Vue 3 with Vue 2 compatible behavior and runtime warnings of incompatible usage. If you are planning to migrate a non-trivial Vue 2 app, we strongly recommend waiting for the Migration Build for a smoother experience.
现在很难从 Vue 2 手动迁移大型应用程序,因为大多数库还不支持 Vue 3,例如 vuelayers
。迁移应考虑 libraries/components.
的升级
我想将我的项目升级到 vue3
这是一个symfony
前端使用vue作为独立组件的应用
我以前从未进行过重大升级,不太确定最好的程序是什么?
我应该卸载
vue2
然后安装vue3
吗?我应该只安装
vue3
吗?我应该直接修改我的
package.json
吗?"dependencies": { "axios": "^0.20.0", "elm-pep": "^1.0.6", "moment": "^2.27.0", "postcss-loader": "^3.0.0", "raw-loader": "^4.0.1", "svg-url-loader": "^6.0.0", "toastr": "^2.1.4", "vue": "^2.6.12", "vue-date-pick": "^1.4.1", "vue-material-design-icons": "^4.9.0", "vue2-editor": "^2.10.2", "vuelayers": "^0.12.0-dev.9" }
INFO
We are still working on a dedicated Migration Build of Vue 3 with Vue 2 compatible behavior and runtime warnings of incompatible usage. If you are planning to migrate a non-trivial Vue 2 app, we strongly recommend waiting for the Migration Build for a smoother experience.
现在很难从 Vue 2 手动迁移大型应用程序,因为大多数库还不支持 Vue 3,例如 vuelayers
。迁移应考虑 libraries/components.