I want use swiperjs but I am getting a module not found error.
Try
import 'swiper/swiper-bundle.css'
instead of import 'swiper/css'
I had a similar issue in my vue procet and the problem was that apps created by create-vue-app apparently don't support pure JS modules like swiper. You can read more about that here https://github.com/nolimits4web/swiper/issues/4871 and the referenced solution https://swiperjs.com/react#usage-with-create-react-app
You imported wrong ccs file. You should change
import './style.css'