Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

thushara's avatar

Vue Filepond setOptions error

Module '"vue-filepond"' has no exported member 'setOptions'. Did you mean to use 'import setOptions from "vue-filepond"' instead Got this error when using filepond setOptions method. any idea about this?

my code

import vueFilePond, { setOptions } from "vue-filepond"; import "filepond/dist/filepond.min.css";

setOptions({ server: { process: { url: ApiService.siteUrl+'parcel/upload-documents', method: 'POST' } } }); const FilePond = vueFilePond();

0 likes
8 replies
thushara's avatar

@Sinnbeck I updated the question. Anyway, this is a big file of a Vue component. can not insert whole code

Sinnbeck's avatar

@thushara This is is just

import vueFilePond from "vue-filepond";
vueFilePond.setOptions({ server: { process: { url: ApiService.siteUrl+'parcel/upload-documents', method: 'POST' } } });
thushara's avatar

@Sinnbeck Thank you, And I think I should create an instance first and call setOptions on it.

const FilePond = vueFilePond(); FilePond.setOptions({ server: { process: { url: ApiService.siteUrl+'parcel/upload-documents', method: 'POST' } } }); Otherwise got another error saying, Property 'setOptions' does not exist on type '(...plugins: any[]) => ComponentOptions<any, VueFilePondInstanceMethods, any, VueFilepondProps, any, any, any, any>'

thushara's avatar

@Sinnbeck This is not still fixed. I noticed that the error appears when I run an npm watch. but the app is working when I used it like this. import vueFilePond, { setOptions } from 'vue-filepond';

Please or to participate in this conversation.