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

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

Closed
niemyjski opened this issue Dec 15, 2023 · 8 comments · Fixed by #37 or #38
Assignees

Comments

@niemyjski
Copy link

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

@jdgamble555
Copy link

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
Copy link
Owner

metonym commented Dec 16, 2023

Fixed in v0.8.1

@jdgamble555
Copy link

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

@metonym
Copy link
Owner

metonym commented Dec 17, 2023

What's the error?

@jdgamble555
Copy link

VS Code can't find the import.

@metonym
Copy link
Owner

metonym commented Dec 17, 2023

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

@metonym metonym reopened this Dec 17, 2023
metonym added a commit that referenced this issue Dec 17, 2023
metonym added a commit that referenced this issue Dec 17, 2023
metonym added a commit that referenced this issue Dec 17, 2023
@metonym
Copy link
Owner

metonym commented Dec 17, 2023

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

@jdgamble555
Copy link

Seems to be working now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants