Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant show images #55

Closed
akayee opened this issue Nov 10, 2019 · 13 comments
Closed

Cant show images #55

akayee opened this issue Nov 10, 2019 · 13 comments

Comments

@akayee
Copy link

akayee commented Nov 10, 2019

image

import AwesomeSlider from 'react-awesome-slider';
import AwesomeSliderStyles from 'react-awesome-slider/src/styled/fold-out-animation';

result empty. Dunnow why?

@rcaferati
Copy link
Owner

Hi @akayee, thanks for raising it. You're importing it correctly. Can you show me how are you implementing the slider itself?

@akayee
Copy link
Author

akayee commented Nov 10, 2019

""




""

image

hello i actually wrote it too but github didint show

@rcaferati
Copy link
Owner

@akayee it's probably something related to the source. Have you tried removing the ./ and using just assets/img/file-name.jpg?

@akayee
Copy link
Author

akayee commented Nov 10, 2019

i did but nothing change i also did src/assets...

@rcaferati
Copy link
Owner

@akayee What are you using as project base? react-create-app, next.js, gatsby.js?

@akayee
Copy link
Author

akayee commented Nov 10, 2019

I am using Paperkit 2 Demo (Material kit) Reactstrap

@tareefdev
Copy link

tareefdev commented Dec 17, 2019

I have the same problem, all HTML elements seem loaded correctly with its CSS rules, but images don't appear. I'm using Gatsby.
You could see the slider here:
http://betasyrianarchive.tk/
The source code of the page is there:
https://gitlab.com/tareefdev/sy-beta/blob/master/src/pages/index.js#L40

The issue only appears after building, while in the development stage the slider works perfectly

@tareefdev
Copy link

Inspecting the HTML shows that images are available too:
Screenshot_20191217_134146

@tareefdev
Copy link

I found that the first slide doesn't take awssld--active class, so it's invisible, adding it to the first slide makes its image be appeared but other slider functionalities don't work, for example, pressing on arrows doesn't slide images

@rcaferati
Copy link
Owner

Which version are you using @tareefdev?

@tareefdev
Copy link

@tareefdev
Copy link

Updating to 2.3.0 solves the issue.

@rcaferati
Copy link
Owner

@tareefdev Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants