Closed RabbiIslamRony closed 7 months ago
The warning you put in the title is just a warning, it does not cause the build error.
Error: [commonjs--resolver] Missing "./svelte" specifier in "swiper" package
seems to be the cause for that.
Please update the description and include a link to a repository with a minimal reproduction with using that package.
I'm guessing you're trying to import from swiper/svelte
someplace. However, you're using Swiper 11 and Swiper Svelte components were removed in v9: https://swiperjs.com/svelte
Closing this since it appears to be a mistake in your usage rather than any bug in SvelteKit
Describe the bug
Warning: "The following packages have a svelte field in their package.json but no exports condition for svelte" in Vite Plugin Svelte and error build
Reproduction
npm run build
My svelte.config.js
My package.json
Logs
System Info
Severity
serious, but I can work around it
Additional Information
No response