Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
harsh111-bit opened this issue Feb 22, 2024 · 1 comment

Comments

@harsh111-bit
Copy link

harsh111-bit commented Feb 22, 2024

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

@half2me
Copy link

half2me commented May 26, 2024

I have the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants