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

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

Open thesrs02 opened this issue 1 year ago • 1 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

I'm getting the following warning:

[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. Setup a svelte-kit project with the latest svelte-kit with node v22.1.0
  2. Install "@sveltejs/vite-plugin-svelte": "^3.1.1"
  3. npm run dev ...

Expected Behaviour

Should not throw the warning.

thesrs02 avatar Jun 26 '24 13:06 thesrs02

Duplicate of #12

ekcom avatar Aug 15 '24 19:08 ekcom