Skip to content

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

@thesrs02

Description

@thesrs02

Checks

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/svelte-splide@0.2.9
@splidejs/splide@4.1.4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions