无法从9直接升至12,需要一级一级的升级
flow sky的pr:
10.x: https://github.com/atinc/pc-flow-sky/commit/833a48d1a0546e06632d5312c07bf2d94ae38187
11.x: https://github.com/atinc/pc-flow-sky/pull/464/files
12.x: https://github.com/atinc/pc-flow-sky/pull/675/files
步骤:
1、不要删除原有项目的node_modules
2、运行 ng update @angular/core@9 @angular/cli@9 将当前项目更新到最新的Angula@8版本
3、运行 ng update @angular/core@9 @angular/cli@9 --force 升级到Angular@9 (过程比较慢)
报错:
1、
解决方式: 在tsconfig.json里新增"skipLibCheck": true

2、报错

解决方式:移除组件库的css依赖,只保留业务组件库的即可

3、报错

解决方案:

4、报错

解决方案:升级组件库到12.1.14即可解决
5、报错

解决方案:下载组件库12.0.58
6、报错
解决方案:npm install --save-dev raw-loader
常见错误:https://blog.csdn.net/weixin_44227791/article/details/120970520