sbb-design-systems / lyne-components

Components for Lyne Design System
https://lyne-storybook.app.sbb.ch
MIT License
45 stars 13 forks source link

[Bug]: 0.48.0 breaks button style imports #2482

Closed sandrooco closed 6 months ago

sandrooco commented 6 months ago

Preflight Checklist

Bug type

Functionality

It affects the following packages

Components

Which version of Lyne Components are you using

0.48.0

Operating system

macOS

Browser / Browser version

Chromium

Input mode

None

Additional settings

No response

What happened?

Since 0.48.0, and probably PR #2475, our , respectively its style imports break with the following error: _nodemodules/@sbb-esta/lyne-components/button/common/index.d.ts:2:46 - error TS2307: Cannot find module './button-common.scss?lit&inline' or its corresponding type declarations. See the stackblitz example linked below.

I'm not sure if this is an "Angular only" issue or not - so far I don't have a deep enough understanding of how Lit components work. 😉 Thanks in advance!

Steps to reproduce the issue

  1. Set up a basic Angular project
  2. Install Lyne
  3. Try to use a button (any variant will do)
  4. See the error in the console

Minimal stackblitz: https://stackblitz.com/edit/angular-at-nxjrka?file=src%2Fmain.ts

Relevant log output

No response

jeripeierSBB commented 6 months ago

not solved with 0.48.1