splide icon indicating copy to clipboard operation
splide copied to clipboard

Vite "missing exports condition" warning for Svelte Splide

Open Nintron27 opened this issue 1 year ago • 2 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

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/[email protected]
@splidejs/[email protected]

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?

Nintron27 avatar Dec 15 '23 00:12 Nintron27

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

dioxine avatar Dec 16 '23 02:12 dioxine

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

mike-moreau avatar Apr 25 '24 14:04 mike-moreau