Closed kaihaase-wd closed 7 years ago
I added check for the ngDoCheck so that ngOnDestroy is not called if dropzone has not been initialized yet. This should fix your error, if not then let me know. I released 4.0.2 version so please try that.
Hi, I'm not sure if this is really related to the original issue here, but I have a strange error spamming my terminal only while running my tests:
ERROR: 'Error during cleanup of component', UploadComponent{store: Store{_isScalar: false, _dispatcher: Dispatcher{_isScalar: ..., observers: ..., closed: ..., isStopped: ...
This error is caused by a component which uses the DropzoneComponent. I couldn't figure out the issue here. At first I thought there is a .destroy()
missing, but you've already implemented it.
Do have an idea what I might do wrong?
I think that causes the error. Setting runInsideAngular might fix the issue.
I can't say what could be causing that. I will add unit tests at some point so maybe the issue will present itself to me as well and I could fix it if there is something to fix.
Thanks a lot for this nice wrapper. But I'm a little bit in trouble with my unit tests.
The following error occurs in the unit tests of the component that uses the ngx-dropzone-wrapper directive:
inline template: 40: 3 caused by: Can not read property 'destroy' of undefined
This error occurs in Angular 2 and in Angular 4.
Maybe you should check if
this.dropzone
exists before you destroy it inngOnDestroy
.