[Vuejs]-Vue-Dropzone setOption method not working

0đź‘Ť

Uncaught TypeError: Cannot read property 'options' of undefined
at VueComponent.setOption (vue2Dropzone.js?2af3:1)

This means you probably called setOption() before <vue-dropzone> was mounted.

(Because this.dropzone.options should be available after mounted() is called)

 Uncaught TypeError: Cannot read property 'setOption' of undefined

Calling setOption() on the dropzone property inside the component wouldn’t work either because it also wouldn’t be initialised yet and secondly because Dropzone.js doesn’t have such a method.

Setting it directly also shouldn’t work, or are you setting that at different time?

Leave a comment