Closed nh-mdev closed 3 years ago
I can't reproduce it. Maybe is something in your Vue Project.
It happens when you upload a image or a pdf? Looks like is something that do Vue on the variable context when the route change.
Sure If we put a null check in the error line 181 Will be another null error elsewhere. The thing is know why It execute the method when the route change, maybe It shouldn't at this point, and why is null because there are a file on it, isn't it?
Anyway I can’t reproduce it, I think is something that should be fixed in your project environment, If you find a reason and a robust fix for it we can change the library.
@Adri-Glez Happens to me when I upload a PDF Using React
can confirm this issue using vue
It happens to me too in React. Hard to reproduce, but the issue exists. See attached error log.
Same here on svelte.
Same here on Vue + nuxt
@Adri-Glez looks like quite a few people have this issue - maybe reopen this?
issue still there ... when changing the route the error is triggered ... vue 2 (Nuxt) 😕
Describe the bug Using vue-filepond with the pdf preview plugin, sometimes the stacktraced error occurs on route change.
To Reproduce 1) Uploading an image 2) Waiting for it to succeed 3) Navigating away from the current route 4) Going back to upload view 5) Remove current image 6) Upload new image 7) Navigate away from current route
Expected behavior No console TypeError.
Stacktraces
Information about your project: Windows 10 Google Chrome - Version 89.0.4389.90 (64-Bit)
Additional context I tried "resolving/catching" this error in the beforeDestroy() life-cycle hook of the component holding vue-filepond, but the this.$refs is already undefined at that point.