Splidejs / svelte-splide

Svelte component for the Splide slider/carousel.
https://splidejs.com/
MIT License
82 stars 9 forks source link

WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte. #12

Open itaibaruch opened 9 months ago

itaibaruch commented 9 months ago

Checks

Version

0.2.9

Description

Hi,

I got this warning in console: Screenshot 2024-01-19 at 11 14 55

In the latest version of Vite it's required to specify svelte export: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

Reproduction Link

No response

Steps to Reproduce

  1. npm create svelte@latest my-app
  2. cd my-app
  3. npm install @splidejs/svelte-splide
  4. npm install
  5. npm run dev

Expected Behaviour

no console warning will be great

ZerdoX-x commented 9 months ago

I have opened a PR. Would like to get anyone's feedback on that.

Notes: https://github.com/sveltejs/kit/pull/8922 https://kit.svelte.dev/docs/packaging#anatomy-of-a-package-json-exports

zvikasdongre commented 3 weeks ago

Hi, Any news on this? The warning is pretty annoying.

mulder999 commented 3 days ago

@NaotoshiFujita @basaran Is this project still maintained ?

basaran commented 3 days ago

hi, I haven't used svelte-splide in a while myself. Hope @NaotoshiFujita is well and fine.