Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'registerPlugin' is not exported #1

Open
muhsim opened this issue Oct 7, 2020 · 8 comments
Open

Error: 'registerPlugin' is not exported #1

muhsim opened this issue Oct 7, 2020 · 8 comments

Comments

@muhsim
Copy link

muhsim commented Oct 7, 2020

I am seeing the following error while trying to use it (npm run dev):

[!] Error: 'registerPlugin' is not exported by node_modules/filepond/dist/filepond.js, imported by node_modules/svelte-filepond/src/index.js

Versions

  • "filepond": "^4.21.0"
  • "svelte-filepond": "0.0.1"
@rikschennink
Copy link
Collaborator

Can you create a test case on https://codesandbox.io/

@jonasnobile
Copy link

I've had the same problem. My solution was to change rollup-plugin-node-resolve to '@rollup/plugin-node-resolve.

@northkode
Copy link

northkode commented Dec 15, 2020

I am already using "@rollup/plugin-node-resolve": "^7.1.1",
and the error remains.

Error: 'registerPlugin' is not exported by node_modules/filepond/dist/filepond.js, imported by node_modules/svelte-filepond/src/index.js

does the svelte file pond have a different dependency version ?
This is easy to reproduce, follow the docs with a svelte project and it breaks instantly for me

@rikschennink
Copy link
Collaborator

It's weird, it's trying to import from the iife version of FilePond instead of the es module which is in the same folder. Anyone know how to instruct bundlers to use the esm version?

@daniilr
Copy link

daniilr commented Dec 23, 2020

I've faced the same issue. It was solved by upgrading of @rollup/plugin-commonjs:

"@rollup/plugin-commonjs": "^14.0.0",

@Taha-Firoz
Copy link

Same problem on vite

@Taha-Firoz
Copy link

fixed the issue by removing the export from the index file and importing registerPlugin from filepond directly

@mharis
Copy link

mharis commented Dec 23, 2022

@Taha-Firoz Can you share an example of how you solved the issue with vite?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants