svelte-grid-responsive
svelte-grid-responsive copied to clipboard
The following packages have a svelte field in their package.json but no exports condition for svelte.
trafficstars
Description
23:55:01 [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 check or reproduce
Run npm install in a project with the latest "svelte-grid-responsive": "^1.2.4", and "@sveltejs/vite-plugin-svelte": "^3.0.2",.
Potential fix
As usual with deprecation warnings like this the migration path is rather unclear. It looks like you need to change:
{
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts"
}
To a construction like this (or actually you need to have both, since some tools are not compatible with this yet 🤦🏻♂️):
{
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
}
}
}