Skip to content

'@tsconfig/svelte' error after upgrading to @smui/[email protected] (for Svelte 5 upgrade) #680

Open
@amarsiingh

Description

@amarsiingh

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:

  1. Upgrade any component package to v8
  2. then attempt to run the app.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions