Skip to content
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

node_modules libraries throwing build issues with skipLibCheck to false in angular 11 project #64

Open
bashasm opened this issue Mar 30, 2021 · 0 comments

Comments

@bashasm
Copy link

bashasm commented Mar 30, 2021

node_modules libraries throwing build issues with skipLibCheck to false in angular 11 project

Attached the sample project

Errors are as below when I try to run the application with npm start

Error: node_modules/@swim/client/lib/main/downlink/ListDownlinkRecord.d.ts:8:9 - error TS2611: 'downlink' is defined as a property in class 'DownlinkRecord', but is overridden here in 'ListDownlinkRecord' as an accessor.

8 get downlink(): ListDownlink<Value, AnyValue>;
~~~~~~~~

Error: node_modules/@swim/client/lib/main/downlink/MapDownlinkRecord.d.ts:8:9 - error TS2611: 'downlink' is defined as a property in class 'DownlinkRecord', but is overridden here in 'MapDownlinkRecord' as an accessor.

8 get downlink(): MapDownlink<Value, Value, AnyValue, AnyValue>;
~~~~~~~~

Error: node_modules/@swim/client/lib/main/downlink/ValueDownlinkRecord.d.ts:8:9 - error TS2611: 'downlink' is defined as a property in class 'DownlinkRecord', but is overridden here in 'ValueDownlinkRecord' as an accessor.

8 get downlink(): ValueDownlink<Value, AnyValue>;
~~~~~~~~

Error: node_modules/@swim/font/lib/main/Font.d.ts:56:481 - error TS2307: Cannot find module '../../length/main' or its corresponding type declarations.

56 static from(style: "normal" | "italic" | "oblique" | null | undefined, variant: "normal" | "small-caps" | null | undefined, weight: "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "bold" | "bolder" | "lighter" | null | undefined, stretch: "normal" | "ultra-condensed" | "extra-condensed" | "semi-condensed" | "condensed" | "expanded" | "semi-expanded" | "extra-expanded" | "ultra-expanded" | null | undefined, size: string | number | import("../../length/main").Length | null | undefined, height: string | number | import("../../length/main").Length | null | undefined, family: FontFamily | ReadonlyArray): Font;
~~~~~~~~~~~~~~~~~~~

Error: node_modules/@swim/font/lib/main/Font.d.ts:56:562 - error TS2307: Cannot find module '../../length/main' or its corresponding type declarations.

56 static from(style: "normal" | "italic" | "oblique" | null | undefined, variant: "normal" | "small-caps" | null | undefined, weight: "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "bold" | "bolder" | "lighter" | null | undefined, stretch: "normal" | "ultra-condensed" | "extra-condensed" | "semi-condensed" | "condensed" | "expanded" | "semi-expanded" | "extra-expanded" | "ultra-expanded" | null | undefined, size: string | number | import("../../length/main").Length | null | undefined, height: string | number | import("../../length/main").Length | null | undefined, family: FontFamily | ReadonlyArray): Font;
~~~~~~~~~~~~~~~~~~~

Error: node_modules/@swim/style/lib/main/StyleValue.d.ts:21:204 - error TS2307: Cannot find module '../../../../swim-core-js/@swim/time/main' or its corresponding type declarations.

21 form(unit?: string | number | boolean | BoxShadow | Length | Color | BoxShadowInit | import("./BoxShadow").BoxShadowArray | RgbColorInit | HslColorInit | DateTime | Angle | Font | Transform | import("../../../../swim-core-js/@swim/time/main").DateTimeInit | Date | import("../../font/main").FontInit | Interpolator<any, any> | Scale<any, any, any, any> | Transition | TransitionInit | TransitionInit | undefined): Form<StyleValue, AnyStyleValue>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: node_modules/@swim/style/lib/main/StyleValue.d.ts:21:277 - error TS2307: Cannot find module '../../font/main' or its corresponding type declarations.

21 form(unit?: string | number | boolean | BoxShadow | Length | Color | BoxShadowInit | import("./BoxShadow").BoxShadowArray | RgbColorInit | HslColorInit | DateTime | Angle | Font | Transform | import("../../../../swim-core-js/@swim/time/main").DateTimeInit | Date | import("../../font/main").FontInit | Interpolator<any, any> | Scale<any, any, any, any> | Transition | TransitionInit | TransitionInit | undefined): Form<StyleValue, AnyStyleValue>;
~~~~~~~~~~~~~~~~~

Error: ./node_modules/@swim/codec/lib/main/Format.js
Module not found: Error: Can't resolve 'os' in 'C:\Users\bshaik\Downloads\poc-swim-angular11\node_modules@swim\codec\lib\main'

poc-swim-angular11.zip

@bashasm bashasm changed the title build issues when I set skipLibCheck to false in angular 11 project node_modules libraries throwing build issues with skipLibCheck to false in angular 11 project Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant