svelte-splide icon indicating copy to clipboard operation
svelte-splide copied to clipboard

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

Open itaibaruch opened this issue 2 years ago • 4 comments

Checks

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

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

itaibaruch avatar Jan 19 '24 04:01 itaibaruch

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

ZerdoX-x avatar Jan 29 '24 21:01 ZerdoX-x

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

zvikasdongre avatar Oct 06 '24 13:10 zvikasdongre