Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.
This repository was archived by the owner on May 5, 2022. It is now read-only.

Carousel only works when using dev:ssr? #68

@timoanttila

Description

@timoanttila

I was really happy to find this, but the joy turned to sadness when I noticed this only works for npm run dev:ssr and not npm run dev. Do I need to add a script or external file to the pages?

Using Routify with Tailwind
node 14.17.0
npm 6.14.13

<script>
	import Carousel from "@beyonk/svelte-carousel";
	import Game from "./game/card.svelte";

	export let data;
	export let type = 1;
</script>

<div class="2xl:pl-0 2xl:pr-0 pl-6 pr-6 relative">
	<Carousel perPage={{ 800: 3, 500: 2 }}>
		{#each data as item}
			<div class="slide-content p-3">
				{#if type == 1}
					<Game {item} />
				{/if}
			</div>
		{/each}
	</Carousel>
</div>

Maybe this is the problem?
Uncaught (in promise) TypeError: Siema is not a constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions