You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core.js:6241 ERROR TypeError: Cannot read property 'unsubscribe' of undefined
at NzUploadComponent.ngOnDestroy (ng-zorro-antd-upload.js:1968)
at executeOnDestroys (core.js:14418)
at cleanUpView (core.js:14317)
at destroyViewTree (core.js:14081)
at destroyLView (core.js:14268)
at RootViewRef.destroy (core.js:15133)
at ComponentRef$1.destroy (core.js:34204)
at FormlyConfig.resolveFieldTypeRef (ngx-formly-core.js:561)
at CoreExtension.getFieldComponentInstance (ngx-formly-core.js:3395)
at CoreExtension.prePopulate (ngx-formly-core.js:3218)
source code of NzUploadComponent.ngOnDestroy:
ngOnDestroy(): void {
this.i18n$.unsubscribe();
}
The text was updated successfully, but these errors were encountered:
use nz-upload component
in
ng-zorro-antd 9.3.0
ngx-formly 5.10.4
with "upload.type.ts" template:
<nz-upload
nzAction="https://www.mocky.io/v2/5cc8019d300000980a055e76"
[nzHeaders]="{ authorization: 'authorization-text' }"
>
<button nz-button><i nz-icon nzType="upload"></i>Click to Upload</button>
</nz-upload>
get error:
core.js:6241 ERROR TypeError: Cannot read property 'unsubscribe' of undefined
at NzUploadComponent.ngOnDestroy (ng-zorro-antd-upload.js:1968)
at executeOnDestroys (core.js:14418)
at cleanUpView (core.js:14317)
at destroyViewTree (core.js:14081)
at destroyLView (core.js:14268)
at RootViewRef.destroy (core.js:15133)
at ComponentRef$1.destroy (core.js:34204)
at FormlyConfig.resolveFieldTypeRef (ngx-formly-core.js:561)
at CoreExtension.getFieldComponentInstance (ngx-formly-core.js:3395)
at CoreExtension.prePopulate (ngx-formly-core.js:3218)
source code of NzUploadComponent.ngOnDestroy:
ngOnDestroy(): void {
this.i18n$.unsubscribe();
}
The text was updated successfully, but these errors were encountered: