ng-zorro-antd-demo
ng-zorro-antd-demo copied to clipboard
Not compatible with the latest angularJS version
Hi, I tries to clone your code and ran local, and found it's not compatible with the latest angularJS (bellows are what I executed)
ng update --all --force
ng build
# solve module not found exception
npm install --save rxjs-compat
ng build
Then error still occurs:
ERROR in src/app/core/net/default.interceptor.ts(43,9): error TS2322: Type 'Observable<{}>' is not assignable to type 'Observable<HttpEvent<any>>'.
Type '{}' is not assignable to type 'HttpEvent<any>'.
Type '{}' is not assignable to type 'HttpUserEvent<any>'.
Property 'type' is missing in type '{}'.
src/app/routes/knowledge/article/article.add.component.ts(3,9): error TS2305: Module '"/home/robert/workspace/diy/ng-zorro-antd-demo/node_modules/ng-zorro-antd/ng-zorro-antd"' has no exported member 'NzInputDirectiveComponent'.
src/app/routes/knowledge/article/article.edit.component.ts(3,9): error TS2305: Module '"/home/robert/workspace/diy/ng-zorro-antd-demo/node_modules/ng-zorro-antd/ng-zorro-antd"' has no exported member 'NzInputDirectiveComponent'.
Finally the environment of my computer:
robert@xxx-xxx:~/workspace/diy/ng-zorro-antd-demo$ ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 7.0.4
Node: 8.9.4
OS: linux x64
Angular: 7.0.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.10.4
@angular-devkit/build-angular 0.10.4
@angular-devkit/build-optimizer 0.10.4
@angular-devkit/build-webpack 0.10.4
@angular-devkit/core 7.0.4
@angular-devkit/schematics 7.0.4 (cli-only)
@angular/cli 7.0.4
@ngtools/webpack 7.0.4
@schematics/angular 7.0.4 (cli-only)
@schematics/update 0.10.4
rxjs 6.3.3
typescript 3.1.6
webpack 4.19.1