ngxd icon indicating copy to clipboard operation
ngxd copied to clipboard

Angular 14.1.0 issue with implementing ComponentRef

Open tiberiuzuld opened this issue 1 year ago • 2 comments


Error: node_modules/@ngxd/core/lib/adapter/adapter.experimental.d.ts:39:22 - error TS2720: Class 'DynamicComponentRef<T>' incorrectly implements class 'ComponentRef<T>'. Did you mean to extend 'ComponentRef<T>' and inherit its members as a subclass?
  Property 'setInput' is missing in type 'DynamicComponentRef<T>' but required in type 'ComponentRef<T>'.

39 export declare class DynamicComponentRef<T> implements ComponentRef<T> {
                        ~~~~~~~~~~~~~~~~~~~

  node_modules/@angular/core/index.d.ts:1377:14
    1377     abstract setInput(name: string, value: unknown): void;
                      ~~~~~~~~
    'setInput' is declared here.

I think it has to do with:

  • add ability to set inputs on ComponentRef (https://github.com/angular/angular/pull/46641)

tiberiuzuld avatar Jul 21 '22 06:07 tiberiuzuld

Thank you, I will look into this issue and fix it as soon as possible

thekiba avatar Jul 21 '22 07:07 thekiba

@thekiba Hi there! Any estimations when the 14+ version will be released?

Vladyslav-Hrossu avatar Aug 11 '22 11:08 Vladyslav-Hrossu

@tiberiuzuld @Vladyslav-Hrossu, I apologize for the long answer. The new version is now available for use. Message to me if you have any problems.

thekiba avatar Sep 19 '22 10:09 thekiba