beyonk-group / svelte-google-analytics

Google Analytics component for Svelte
76 stars 12 forks source link

Vite 5 vite-plugin-svelte warning: 'no exports condition for svelte' #35

Open colinhowells opened 8 months ago

colinhowells commented 8 months ago

When building with SvelteKit 2 and Vite 5:

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

@beyonk/svelte-google-analytics@2.6.4

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

We had this on several deps, and helped some maintainers with it: most of the time, the fix – hinted by the link in error message – is quite straightforward (and backward compatible) and .

Feel free to tell if a PR would help.