Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to angular 19 #585

Merged
merged 20 commits into from
Mar 5, 2025
Merged

chore: upgrade to angular 19 #585

merged 20 commits into from
Mar 5, 2025

Conversation

yangxiaolang
Copy link
Collaborator

@yangxiaolang yangxiaolang commented Mar 4, 2025

升级更改

  1. Angular 及周边升级到 v19
  2. 单元测试问题 fix
  3. 补充 babel/* 插件修复 Netlify 构建

2,3 有点奇怪,从报错看以前就该有问题

升级遇到的问题

  1. @angular/cdk@19 的 CDKSrollable 改为了使用 inject() 进行依赖注入, DialogRef 中的 new CDKScrollable() 用法出现 NG0203 问题,导致所有 DialogService.open 全部无法正确打开对话框
    处理方法: 增加一个 wrapper 组件在 DOM 使用 CDKScrollable 指令 e52d3e0

  2. 升级后存在大量 Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. 的警告,scss 引入了模块系统并会在之后弃用 @import 及全局作用域 https://sass-lang.com/d/import
    处理方法: 暂时不处理,AUI 迁移本身成本不高,直接用迁移工具+少量手动修改。但是已有的 FE 项目迁移成本巨大,光靠迁移工具仍有很多手工工作量,后续单独迁移

Copy link

changeset-bot bot commented Mar 4, 2025

🦋 Changeset detected

Latest commit: e20e5e3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@alauda/ui Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yangxiaolang yangxiaolang reopened this Mar 4, 2025
@yangxiaolang yangxiaolang reopened this Mar 4, 2025
@yangxiaolang yangxiaolang force-pushed the chore/upgrade-angular-19 branch from 8063fc1 to a428f44 Compare March 5, 2025 00:10
@yangxiaolang yangxiaolang reopened this Mar 5, 2025
@yangxiaolang yangxiaolang force-pushed the chore/upgrade-angular-19 branch from a428f44 to a72f148 Compare March 5, 2025 00:27
@yangxiaolang yangxiaolang reopened this Mar 5, 2025
@yangxiaolang yangxiaolang force-pushed the chore/upgrade-angular-19 branch from 4062485 to 0903666 Compare March 5, 2025 03:33
Co-authored-by: JounQin <admin@1stg.me>
@JounQin JounQin changed the title Chore/upgrade angular 19 chore: upgrade to angular 19 Mar 5, 2025
@yangxiaolang yangxiaolang merged commit e928e62 into master Mar 5, 2025
6 checks passed
@yangxiaolang yangxiaolang deleted the chore/upgrade-angular-19 branch March 5, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants