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

Splide slider won't load after switching to another language #31

Open
Divinely5782 opened this issue Jul 2, 2024 · 0 comments
Open

Comments

@Divinely5782
Copy link

Hi, i am working with your template and faced with issue, i have created a new component: Slider.astro with code:
`---
import Image from "astro/components/Image.astro";

import slide1 from "@assets/images/homeslider/1.jpg";
import slide2 from "@assets/images/homeslider/2.jpg";

  • slide1
  • slide1
<script> import "@splidejs/splide/css"; import Splide from "@splidejs/splide"; new Splide( '#homeslider').mount(); </script>

`

then i call it on homepage, but when i switch to another lang it shows me blank screen where slider should appear.

I disabled from layout and it worked perfectly but how to stay with them?

P.S. grabbed a new revision from your repo and still pnpm can perform build process due to Error: Could not load the "sharp" module using the win32-x64 runtime =((((((((

BUN worked, but if i use it i cant propely install useful integrations such as astro-icon.

Thank you so much for help!

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

1 participant