Ionic 3 至 6 升级
我们需要将旧版 Ionic 3 项目更新为 Ionic 6。Ionicframework 有从 3 到 4、4 到 5、5 到 6 的迁移指南。但最具挑战性的是从 3 迁移到 4。
从 3 迁移到 4< /强> ionic start myApp tab
它在 Ionic 6 中创建一个空白项目。
所以第一步:如何使用 Ionic CLI 而不是 6 创建 Ionic 4 项目?
步骤2: 哪些文件需要更改为 Ionic 4?
步骤3: 如何使用 Ionic Cli 运行空白的 Ionic 5?
第4步: 从 4 更新到 5 需要更改哪些文件?
第5步: 从 5 更新到 6 需要更改哪些文件?
We need to update a legacy Ionic 3 project into Ionic 6. Ionicframework has a migration guide from 3 to 4, 4 to 5 and 5 to 6. But the most challenging is migrate 3 to 4.
Migration from 3 to 4
ionic start myApp tab
It creates a blank project in Ionic 6.
So first step: how to create a Ionic 4 project using Ionic CLI instead of 6?
Step 2:
What files to change to Ionic 4?
Step 3:
How to run a blank Ionic 5 using Ionic Cli?
Step 4:
What files to change to update from 4 to 5?
Step 5:
What files to change to update from 5 to 6?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
建议:为了避免大量错误和适应以及大量时间的开发,我认为您应该直接转到 Ionic 6。启动一个新应用程序并将逻辑和页面流程转移到新应用程序。相反,如果您从版本 3 升级到版本 6,这可能会让人头疼。与新应用程序相比,旧应用程序上安装的库和插件也有很多变化。
更新:
您可以检查 Ionic Breaking Changes。
Suggestion: To avoid a lot of errors and adaptations and many hours developing, I think you should go directly to the Ionic 6. Start a new App and transfer the logics and page flows to the new App. Instead It can be a headache, If you go from version 3 to 6. There are also many changes on the libraries and plugins installed on the old App compared to a new one.
Update:
You can check the Ionic Breaking Changes.