Skip to content

The requested module does not provide an export named 'default' #2

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

Open
inspiredlabs opened this issue May 3, 2022 · 2 comments
Open

Comments

@inspiredlabs
Copy link

svelte-agnostic-draggable doesn't seem to load as expected after running npm install svelte-touch-to-mouse && npm install svelte-touch-to-mouse.

  • Sveltekit errors 500 loading this directly from within a component: The requested module '/node_modules/agnostic-draggable-bug-fixed/dist/agnostic-draggable.js?v=e9af1830' does not provide an export named 'default'
  • wrapping within onMount throws in the console: svelte-agnostic-draggable.esm.js:1 Uncaught (in promise) SyntaxError: The requested module '/node_modules/agnostic-draggable-bug-fixed/dist/agnostic-draggable.js?v=e9af1830' does not provide an export named 'default'

So, depending how this script is referenced it's possible to replicate there seems to be no export named 'default'.

Any ideas what might be going wrong?

Thanks for this, it looks really comprehensive otherwise.

@rozek
Copy link
Owner

rozek commented May 3, 2022

thanks for this report - let me check what's wrong, but give me a little bit of time...

@rozek
Copy link
Owner

rozek commented Jul 12, 2023

Since the original module agnostic-draggable has been updated in the mean time, I've move from my "-bug-fixed" version to the original again.

Please check if your problem persists!

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

2 participants