-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Could not find a declaration file for module 'swiper' #6685
Comments
I've got the same issue. Did you manage to find a way to fix it? |
Please check this PR: #6626 |
Solution:
|
Thank you so much @salvadoregunacci for the solution. |
@paras1729kori
P.S it's not the best option, but it might come in handy |
Thanks a bunch @salvadoregunacci. It worked. |
It helps for me: in your tsconfig.json |
Got same error today while migrating nextjs project to esm. tsconfig moduleResolution = bundler Im just copy-pasted declaraions from
|
what worked for me in Next.js 13 was using swiper instead of swiper/module that was written in the documentation. |
Check that this is really a bug
Reproduction link
n/a
Bug description
Fresh installation of Vite with React and TypeScript using Swiper version 9.3.2. I am getting the following error:
Here's my code:
Expected Behavior
Types should just work without error.
Actual Behavior
Type error.
Swiper version
9.3.2
Platform/Target and Browser Versions
n/a
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: