sveltejs-tippy icon indicating copy to clipboard operation
sveltejs-tippy copied to clipboard

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

Open harsh111-bit opened this issue 1 year ago • 1 comments

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/[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

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

harsh111-bit avatar Feb 22 '24 03:02 harsh111-bit

I have the same

half2me avatar May 26 '24 08:05 half2me