mdauner / sveltejs-tippy

Tippy.js for Svelte
MIT License
40 stars 4 forks source link

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

Open harsh111-bit opened 8 months ago

harsh111-bit commented 8 months ago

Describe the bug Hi, I just updated to vite v5.1.4, and running the local server is throwing the below warning,

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

@jhubbardsf/svelte-sortablejs@1.1.0
sveltejs-tippy@3.0.0
svelte-collapsible@0.3.0
swiper@8.4.7
svelte-collapse@0.1.2

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.
You have specified a baseUrl and/or paths in your tsconfig.json which interferes with SvelteKit's auto-generated tsconfig.json. Remove it to avoid problems with intellisense. For path aliases, use `kit.alias` instead: https://kit.svelte.dev/docs/configuration#alias

From vite-plugin-svelte https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

image

Please do the required.

To Reproduce Steps to reproduce the behavior:

  1. Migrate to svelte@4
  2. Migrate to sveltejs/kit@2
  3. Run local server

Expected behavior Shouldn't get this warning for sveltejs-tippy

half2me commented 5 months ago

I have the same