Skip to content

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

@harsh111-bit

Description

@harsh111-bit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions