Skip to content

Missing exports condition #216

@ilyakamens

Description

@ilyakamens

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/konsta-svelte-abcxv9

Bug description

Building or running a Svelte app with Konsta produces the following warning:

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

konsta@3.1.3

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition
for details.
image

The following is taken from the FAQ linked to in the output:

If you see a warning logged for this when using a Svelte library, please tell the library maintainers.

vite-plugin-svelte version 3.1.1.

Expected Behavior

The warning shouldn't appear when building the app.

Actual Behavior

The warning appears when building the app.

Konsta UI version

3.1.3

Platform/Target and Browser Versions

Capacitor / mobile webviews / macOS browsers

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    SvelteIssue with Tailwind Mobile Svelte

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions