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

Support Vite 6 #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

colecrouter
Copy link
Contributor

Apologies in advance, I was not able to find the exact version/change/package that led to this issue, nor could I find out exactly what the issue entails.

When trying to upgrade to Vite 6 (and supported Svelte & SvelteKit versions), there are a couple compiler warnings. As well, any tests using Vitest + @testing-library/svelte fail to import this library:

Error: Failed to resolve entry for package "@thisux/sveltednd". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@thisux/sveltednd" package

I suspect this has something to do with Vite 6's new module resolution system.

I was able to fix this by slightly modifying package.json. I also updated this package/site to Vite 6 + bumped the appropriate deps.

colecrouter and others added 3 commits January 4, 2025 16:51
Removed redundant "types" export, added "import" and "require" to help Vite 6's new module resolution.
Importing vitePreprocess for TypeScript is unnecessary since Svelte 5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant