NG-ZORRO / ng-zorro-antd-mobile

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

ng 13.0.3 install ng-zorro-antd-mobile err #835

Open 256051 opened 2 years ago

256051 commented 2 years ago

$ ng new PROJECT_NAME $ cd PROJECT_NAME $ ng add ng-zorro-antd-mobile

ERR:

The package ng-zorro-antd-mobile@6.0.0 will be installed and executed. Would you like to proceed? Yes √ Package successfully installed. An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID See "C:\Users\XXX\AppData\Local\Temp\ng-vUmnkS\angular-errors.log" for further details.



$ ng version

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | ' \ / | | | | |/ _ | '| | | | | | | / _ | | | | (| | || | | (| | | | || |_ | | // __| ||_, |_,||_,|| __|__|| |/

Angular CLI: 13.0.4 Node: 16.13.0 Package Manager: npm 8.2.0 OS: win32 x64

Angular: 13.0.3 ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1300.4 @angular-devkit/build-angular 13.0.4 @angular-devkit/core 13.0.4 @angular-devkit/schematics 13.0.4 @angular/cli 13.0.4 @schematics/angular 13.0.4 rxjs 7.4.0 typescript 4.4.4

fantasy0v0 commented 2 years ago

我试了一下,虽然提示失败了,但是不影响使用。 但是样式会丢失,需要手动在angular.json的build.styles加一行就正常了。

"node_modules/ng-zorro-antd-mobile/src/ng-zorro-antd-mobile.min.css"

等解决之前只能先这样了。