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

Argument of type 'Selection<BaseType, unknown, HTMLElement, any>' is not assignable to parameter of type 'Selection<any, any, any, any>' #418

Open
sagar08 opened this issue Jan 27, 2021 · 0 comments

Comments

@sagar08
Copy link

sagar08 commented Jan 27, 2021

Package Installed

npm install d3 --save
npm install dagre-d3 --save
npm install --save @types/dagre-d3
npm install @types/d3 --save

Angular framework: 11

Error: src/app/D3/D3-Dynamic/D3-Dynamic.component.ts:113:12 - error TS2345: Argument of type 'Selection<BaseType, unknown, HTMLElement, any>' is not assignable to parameter of type 'Selection<any, any, any, any>'.
  The types of 'select(...).select' are incompatible between these types.
    Type '{ <DescElement extends BaseType>(selector: string): Selection<DescElement, unknown, HTMLElement, any>; <DescElement extends BaseType>(selector: null): Selection<null, undefined, HTMLElement, any>; <DescElement extends BaseType>(selector: ValueFn<...>): Selection<...>; }' is not assignable to type '{ <DescElement extends BaseType>(selector: string): Selection<DescElement, any, any, any>; <DescElement extends BaseType>(selector: null): Selection<null, undefined, any, any>; <DescElement extends BaseType>(selector: ValueFn<...>): Selection<...>; }'.
      Types of parameters 'selector' and 'selector' are incompatible.
        Type 'null' is not assignable to type 'string'.

113     render(container, g);
               ~~~~~~~~~
src/app/D3/D3-Static/D3-Static.component.ts:90:12 - error TS2345: Argument of type 'Selection<BaseType, unknown, HTMLElement, any>' is not assignable to parameter of type 'Selection<any, any, any, any>'.

90     render(container, g);
              ~~~~~~~~~
src/app/D3/D3-Static/D3-Static.component.ts:127:12 - error TS2345: Argument of type 'Selection<BaseType, unknown, HTMLElement, any>' is not assignable to parameter of type 'Selection<any, any, any, any>'.

127     render(container, g);
               ~~~~~~~~~
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