metonym / svelte-time

Svelte component and action to format a timestamp using day.js
https://metonym.github.io/svelte-time
MIT License
137 stars 8 forks source link

WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte. #35

Closed niemyjski closed 8 months ago

niemyjski commented 8 months ago

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

jdgamble555 commented 8 months ago

I get the same error:

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

svelte-time@0.8.0

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

You have specified a baseUrl and/or paths in your tsconfig.json which interferes with SvelteKit's auto-generated
 tsconfig.json. Remove it to avoid problems with intellisense. For path aliases, use `kit.alias` instead: 
https://kit.svelte.dev/docs/configuration#alias
metonym commented 8 months ago

Fixed in v0.8.1

jdgamble555 commented 8 months ago

I'm getting an import error where it can't find the package

metonym commented 8 months ago

What's the error?

jdgamble555 commented 8 months ago

VS Code can't find the import.

metonym commented 8 months ago

Gotcha. I'm working on a fix for the unresolved types.

metonym commented 8 months ago

@jdgamble555 Give v0.8.2 a try. Exports map updated via #38

jdgamble555 commented 8 months ago

Seems to be working now. Thanks!