pqina/svelte-filepond

plugin is not a function

RubenOAlvarado opened this issue · 1 comments

I'm using the component for svelte, but when I'm trying to register the plugins I got the error "plugin is not a function". If I comment the line, the component works fine. Just when I try to use plugins.

import FilePond, { registerPlugin, supported } from 'svelte-filepond';
import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';

//registerPlugin(FilePondPluginImageExifOrientation, FilePondPluginImagePreview);

If I uncomment the line it fails.

I don't know what I did, but now it works. Sorry.