Splidejs / splide

Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors.
https://splidejs.com
MIT License
4.83k stars 418 forks source link

Vite "missing exports condition" warning for Svelte Splide #1258

Open Nintron27 opened 9 months ago

Nintron27 commented 9 months ago

Checks

Version

4.1.4

Description

vite-plugin-svelte throws the following warning on the @splidejs/svelte-splide package:

7:02:25 PM [vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

@splidejs/svelte-splide@0.2.9
@splidejs/splide@4.1.4

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.

Reproduction Link

No response

Steps to Reproduce

  1. Update/be running Svelte >= v4 and SvelteKit >= v2
  2. Run npm run dev in your SvelteKit project

Expected Behaviour

Not have the error thrown. I'm not sure internally how Splide Svelte works, but perhaps this warning is applicable?

dioxine commented 9 months ago

i have the same warning with same setup. we should wait when maintainers of splidejs add this stuff to their product and svelte integration, here are details https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

mike-moreau commented 4 months ago

I began a PR for this issue here https://github.com/Splidejs/splide/pull/1303