Skip to content

Vite Warning: Svelte field in package.json but no export condition for svelte.Β #196

@emmabyte

Description

@emmabyte

Summary

vite-plugin-svelte produces a warning message for svelte-forms-lib.

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

[email protected]

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

Steps to reproduce

Example Project

What is the current bug behavior?

Warning message displayed in console when running npm dev

What is the expected correct behavior?

No warning message should show

Relevant logs and/or screenshots

Possible fixes

Details about the missing exports condition is available here:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions