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

svelte field in package.json is deprecated #8

Open
timothycohen opened this issue Dec 15, 2023 · 0 comments · May be fixed by #9
Open

svelte field in package.json is deprecated #8

timothycohen opened this issue Dec 15, 2023 · 0 comments · May be fixed by #9

Comments

@timothycohen
Copy link
Contributor

Just upgraded an app to SvelteKit 2 and receiving this error:

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

svelte-crop-window@0.2.0

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

Using the svelte field in package.json to point at .svelte source files is deprecated and you must use a svelte export condition. vite-plugin-svelte 3 still resolves it as a fallback, but in a future major release this is going to be removed and without exports condition resolving the library is going to fail.

Upgrading @sveltejs/package via npx svelte-migrate package should fix this.

@sabine sabine linked a pull request Jan 11, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant