'@tsconfig/svelte' error after upgrading to @smui/[email protected] (for Svelte 5 upgrade) #680
Open
Description
Describe the bug
We've been attempting to upgrade our project to Svelte 5; so when we upgrade our SMUI packages to use v8, the app throws error pointing to missing '@tsconfig/svelte/tsconfig.json' file
To Reproduce
Steps to reproduce the behavior:
- Upgrade any component package to v8
- then attempt to run the app.
- See error
Expected behavior
Vite should be able to bundle the app and deploy so that it can run.
Console logs
✘ [ERROR] Error while preprocessing /Users/***/node_modules/@smui/chips/dist/Chip.svelte - error TS6053: File '@tsconfig/svelte/tsconfig.json' not found.
[plugin vite-plugin-svelte:optimize-svelte]
node_modules/@smui/chips/dist/index.js:2:17:
2 │ import Chip from './Chip.svelte';
Desktop (please complete the following information):
- OS: macOS Sequoia 15.2
- Browser : Chrome
- Version 132 (arm64)
Smartphone (please complete the following information):
- n/a