Swiper in node module complains that: An import path cannot end with a '.d.ts' extension #6829
Replies: 6 comments 3 replies
-
Try setting moduleResolution to nodenext |
Beta Was this translation helpful? Give feedback.
-
I don't know what I did, but the import errors in node_modules have gone away. Probably an IDE issue... However, I'm still stuck with the following error:
|
Beta Was this translation helpful? Give feedback.
-
The components seem to work in development, where I don't get the error. It only happens when I build my next application during type checking |
Beta Was this translation helpful? Give feedback.
-
were you able to solve it? |
Beta Was this translation helpful? Give feedback.
-
We fixed this exact error in our project (Angular 16) by:
|
Beta Was this translation helpful? Give feedback.
-
I have installed Swiper in my NextJS project, but for some reason I can't get it to work properly.
tsconfig
Versions:
Next: 13.4.8
React: 18.2.0
Swiper: 10.0.3
The error that I am getting:
Has anyone experienced something like this before? Am I missing some TypeScript configuration?
Beta Was this translation helpful? Give feedback.
All reactions