NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.86k stars 3.91k forks source link

NG-ZORRO V14 Upgrade Guide/ 升级指南 #7613

Open simplejason opened 2 years ago

simplejason commented 2 years ago

English Version

This guide applies to the current version ng-zorro-antd >= 14; If you encounter problems during the upgrade process, feel free to comment here. If you find any errors in this guide, please point out Or you have encountered a new problem and solved it, welcome to comment here.

Before upgrade

  1. Make sure Node.js >= 14.15.5 or >= 16.10.0.
  2. Create a new branch, or use other methods to back up the current project.
  3. Delete the package-lock.json file.

1.Upgrade dependencies

2.Upgrade NG-ZORRO

Common Problems


中文版

本指南适用于当前版本 ng-zorro-antd >= 14 ; 如果在升级过程中遇到问题,欢迎提出。提问前请阅读 如何向开源社区提问题 如果发现本指南存在遗漏/错误,请指出! 或者你遇到了新的问题并解决了,欢迎补充!

开始之前

  1. 首先确保你 Node.js >= 14.15.5 或 >= 16.10.0
  2. 创建新的分支,或者使用其他方式备份当前项目
  3. 删除项目下 package-lock.json 文件

升级步骤

1. 升级相关依赖

2.升级 NG-ZORRO

常见问题

样式不符

zorro-bot[bot] commented 2 years ago

Translation of this issue:

WIP NG-Zorro V14 Upgrade Guide/ Upgrade Guide

Todo

232650413 commented 2 years ago

为什么我升级后,页面反复自动刷新,当修改文件后。强刷后又正常了。

simplejason commented 1 year ago

为什么我升级后,页面反复自动刷新,当修改文件后。强刷后又正常了。

有复现吗?

232650413 commented 1 year ago

为什么我升级后,页面反复自动刷新,当修改文件后。强刷后又正常了。

有复现吗?

没有,空了我再试试

portalZYT commented 3 months ago

./projects/mgr/src/styles.less - Error: Module build failed (from ./node_modules/less-loader/dist/cjs.js):

// @import './variable.less'; @import './@{root-entry-name}.less'; ^ Variable @root-entry-name is undefined Error in ./code/front/node_modules/ng-zorro-antd/style/themes/index.less (line 7, column 8)