Replies: 2 comments 3 replies
-
I have the same issue, although only when using dynamic imports eg. My only fix is to declare a types file // swiper.d.ts
declare module 'swiper/css' {}
declare module 'swiper/css/pagination' {}
declare module 'swiper/css/autoplay' {}
declare module 'swiper/css/effect-fade' {}
declare module 'swiper/css/navigation' {}
// Any other styles you need... |
Beta Was this translation helpful? Give feedback.
1 reply
-
Another solution is to import the css modules from a .css file instead of a JSX/TSX file:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Remix and in order to import css files in remix you must do it like this:
Does anyone else have a way to handle this without doing
@ts-expect-error
to ignore the error?Beta Was this translation helpful? Give feedback.
All reactions