beyonk-group / svelte-carousel

A super lightweight, super simple Carousel for Svelte 3
MIT License
213 stars 38 forks source link

<Carousel> is not a valid SSR component. #48

Closed vedmant closed 4 years ago

vedmant commented 4 years ago

When using with Sapper I have this error:

is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules Would be nice to have some instructions how to use it with Sapper
antony commented 4 years ago

The install instructions are for Sapper, I've never used it with anything other than Sapper.

It sounds like you've installed the library as a regular dependency, not a dev dependency as instructed on the README.

Reinstall it as a dev dependency and the carousel should work.

riez commented 3 years ago

Hi @antony, thanks for this amazing library.

I'm using sapper ^0.29.0 and has been installed it under devDependencies. I also getting this error message.

Edit: I need to import from src to make it working..