pqina / svelte-filepond

🔌 A handy FilePond adapter component for Svelte
MIT License
247 stars 10 forks source link

plugin is not a function #9

Closed RubenOAlvarado closed 3 years ago

RubenOAlvarado commented 3 years ago

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.

RubenOAlvarado commented 3 years ago

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