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

"Cannot find module 'svelte-drag-drop-touch' or its corresponding type declarations." #1

Open
nfplay opened this issue Jan 16, 2024 · 3 comments

Comments

@nfplay
Copy link

nfplay commented Jan 16, 2024

Hi, first of all thank you for this amazing lib.

I'm not finding a compelling reason to get the error message in title: "Cannot find module 'svelte-drag-drop-touch' or its corresponding type declarations.". Just did a normal npm install as per instructions.

Since you're wrapping other core dependency, what i'm doing to circumvent this is importing from "dragdroptouch-bug-fixed" directly, like this:

import DragDropTouch from "dragdroptouch-bug-fixed";

This works for me.

Any tips?

Thanks,
Nuno

@rozek
Copy link
Owner

rozek commented Jan 17, 2024

well, this is too little information for a judgement - do you have a compiler log or s.th. similar?

@nfplay
Copy link
Author

nfplay commented Jan 19, 2024

Just creating a brand new Svelte project from scratch:

npm create svelte@latest my-app

installing the package and trying to import it gives me this error.
Can you reproduce on your side?

@turtureanu
Copy link

I can confirm, this happens to me as well.

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

3 participants