beyonk-group / svelte-google-analytics

Google Analytics component for Svelte
77 stars 12 forks source link

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

Open colinhowells opened 11 months ago

colinhowells commented 11 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 5 months 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.

hslee2008 commented 3 days ago

34 I opened a PR.