You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In simple react app this is not a problem but in gatsby it is. I had to use require instead of import. It seems I need to add additional webpack config. Any help is much appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am running latest gatsby and tried to import css file from swiper library. The css file in its main folder works fine on import
import "swiper/swiper.min.css"
But navigation and pagination css files that are deeply nested dont get imported. Css file even in components folder work but not further.
import "swiper/components/pagination/pagination.min.css"
In simple react app this is not a problem but in gatsby it is. I had to use require instead of import. It seems I need to add additional webpack config. Any help is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions