scania-digital-design-system/sdds

Bug - Latest typescript version cause error

Closed this issue · 1 comments

Describe the bug
A clear and concise description of what the bug is.
When building a react, angular based on typescript. There is an issue importing the current version of SDDS components/theme.

image

Workaround exist
https://www.javaer101.com/en/article/18245268.html

To Reproduce
Steps to reproduce the behavior:

  1. create a new angular project
  2. Install SDDS
  3. Try and import

You can try the same thing with react application based on typescript

Expected behavior
A clear and concise description of what you expected to happen.
No error

no error with without changing the tsconfig(?)

Screenshots
If applicable, add screenshots to help explain your problem.

Version of SDDS
1.4.0+

Framework and version
If you use any specific framework please provide information

  • Framework: angular 11

Additional context
Add any other context about the problem here.
There is a workaround with this https://www.javaer101.com/en/article/18245268.html

You can set strict to false in tsconfig

AB#711

Duplicated, close for another issue