-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 13 fails to compile because of TS type errors #707
Comments
I get the same error when trying to compile tha Angular app. |
Hello there, I will take a look at this :) |
Yes, with Angular 12 it works fine. |
Hello @acstll, the real problemFinally, I took a look at this. The Problem ```ariaLabel ``` attributes aren't the same in ```ScaleComponent.X``` and ```StencilComponent```. Both are of type ```string``` but one is ```optional``` and the other one is ```requiered```. The definition of optional comes from Scale and the definition of requiered comes from typescript.@telekom/scale-components/dist/types interface ScaleSidebarNav {
// ...
// it's optional here
"ariaLabel"?: string;
// ...
} @telekom/scale-components/dist/types typescript/lib/ lib.dom.d.ts -> Element extends ..., ARIAMixin, ... interface ARIAMixin {
// ...
// it's requiered here
ariaLabel: string
// ...
} I have opened a PR #788 and issue #786 that we should make props like ariaLabel optional, after typescript yelled at me, when I was using the webcomponents in TSX (typescript jsx with typescript React, without Info using Scale in JSX in Issue #615 We could fix this easily by requiering all work aroundsI created an Angular app with @telekom/scale-components npm packageComplete info here
@telekom/scale-components via unpkgComplete info here
<script
type="module"
src="https://unpkg.com/@telekom/scale-components/dist/scale-components/scale-components.esm.js"
></script>
<link
rel="stylesheet"
href="https://unpkg.com/@telekom/scale-components/dist/scale-components/scale-components.css"
/> I hope this will help you :) |
The text was updated successfully, but these errors were encountered: