NG-ZORRO / ng-zorro-antd-mobile

A configurable Mobile UI components based on Ant Design Mobile and Angular. 🐜
http://ng.mobile.ant.design
Other
799 stars 241 forks source link

feat(module: all): support Angular 18 #899

Open BBboy01 opened 3 months ago

BBboy01 commented 3 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[x] Yes
[ ] No
  1. TypeScript >=5.5.4
  2. nodejs >= 18

Other information

BBboy01 commented 3 months ago

https://github.com/user-attachments/assets/48e06a13-e8a5-4e1b-8858-31184542102a

As angular 18 support use vite as dev server, require is unusable

removed raw-loader, like NZ-ZORRO use http request get source code

and unified the ui of code box action icons

BBboy01 commented 3 months ago

https://github.com/angular/angular/issues/56945#issuecomment-2273027865

tsconfig.json compilerOptions: { "skipLibCheck": true }

angular < 18.1.3 have ngtypecheck error, for now to run locally, please add code above