react-awesome-slider icon indicating copy to clipboard operation
react-awesome-slider copied to clipboard

Module not found: Can't resolve 'react-awesome-slider' in '/Volumes/Untitled/sofit-latest/celx-react-app/client/src/views/Pages/product-detail

Open shafiq-techmentors opened this issue 4 years ago • 4 comments

Hi, i just followed the steps:

  1. npm install --save react-awesome-slider
  2. imported the style and component
  3. pasted the code given in the render

Now i am getting this error.

./src/views/Pages/product-detail/ProductDetail.js Module not found: Can't resolve 'react-awesome-slider/src/styles.scss' in '/Volumes/Untitled/sofit-latest/celx-react-app/client/src/views/Pages/product-detail'

shafiq-techmentors avatar Mar 13 '20 15:03 shafiq-techmentors

Hello, did you fix this problem? I have the same issue.

KlejdyszS avatar Aug 19 '20 09:08 KlejdyszS

Yeah I have fixed the issue

shafiq-techmentors avatar Aug 22 '20 07:08 shafiq-techmentors

How did you resolve?

boundlessworkshop avatar Jan 05 '21 17:01 boundlessworkshop

@boundlessworkshop I just ran into the same problem and it was a directory issue.

change your import from this import AwsSliderStyles from 'react-awesome-slider/src/styles.scss';

to this: import AwsSliderStyles from 'react-awesome-slider/src/core/styles.scss';

jcanning avatar Jan 09 '21 19:01 jcanning