wKoza / ngx-upload

Ngx-upload is an upload module for Angular Ivy ready
30 stars 15 forks source link

Cannot read property 'nativeElement' of undefined - Angular 9 #77

Closed root5533 closed 4 years ago

root5533 commented 4 years ago

Upgraded an angular application to version 9 and this error shows from the ngx-upload library.

core.js:5882 ERROR TypeError: Cannot read property 'nativeElement' of undefined at InputfileComponent.push../node_modules/@wkoza/ngx-upload/__ivy_ngcc__/components/inputfile.component.js.InputfileComponent.ngOnInit (inputfile.component.js:32) at callHook (core.js:3941) at callHooks (core.js:3905) at executeInitAndCheckHooks (core.js:3846) at refreshView (core.js:11802) at refreshDynamicEmbeddedViews (core.js:13149) at refreshView (core.js:11807) at refreshComponent (core.js:13224) at refreshChildComponents (core.js:11515) at refreshView (core.js:11836)

Is the library officially supporting angular 9 yet ?

root5533 commented 4 years ago

@wKoza

wKoza commented 4 years ago

Hi @root5533 ,

Currently, the library doesn't support officially Angular 9. I'll try to take a look at your problem today.

wKoza commented 4 years ago

Hi @root5533 ,

I released a new version : 9.0.0-beta.0. It seems okay for me. Maybe could you test it on your project ,

wKoza commented 4 years ago

V9.0.0 released

nijasumedha commented 4 years ago

Thank you @wKoza above issue has been fixed now. appreciate your help