Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module "react-slick"

I'm trying to use react-slick inside my React project. When I try to import it

import Slider from 'react-slick';

I get this error

Cannot find module "react-slick"

Anyone else having this issue ?

https://github.com/akiran/react-slick Installation

npm install react-slick

Also install slick-carousel for css and font

npm install slick-carousel

React V "react@^15.4.1"

NPM install results

npm install react-slick --save
(node:14297) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[email protected] ..blal
└─┬ [email protected] 
  ├─┬ [email protected] 
  │ └── [email protected] 
  ├─┬ [email protected] 
  │ ├── [email protected] 
  │ └── [email protected] 
  └─┬ [email protected] 
    └── [email protected] 


npm install slick-carousel --save
(node:14298) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[email protected] ..blal
└── [email protected] 
like image 803
me-me Avatar asked Oct 20 '25 12:10

me-me


1 Answers

Inside your react component file: import Slider from 'react-slick';

In package.json check version : "react-slick": "^0.15.4"

this is working for me.

like image 146
RVCoder Avatar answered Oct 22 '25 03:10

RVCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!