splide
splide copied to clipboard
Vite "missing exports condition" warning for Svelte Splide
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
- Update/be running Svelte >= v4 and SvelteKit >= v2
- 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?
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
I began a PR for this issue here https://github.com/Splidejs/splide/pull/1303