You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[bug]error NG2016: The component xxx inherits its constructor from CdkVirtualScrollViewport , but the latter has a constructor parameter that is not compatible with dependency injection. Either add an explicit constructor to xxx or change CdkVirtualScrollViewport's constructor to use parameters that are valid for DI.
#48251
Closed
lamianbu opened this issue
Nov 28, 2022
· 2 comments
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
A comp extends CdkVirtualScrollViewport, build success with angular@14, but build fail with angular@15
The comp with no constructor, so should not show this ERROR:
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
× Compiling with Angular sources in Ivy partial compilation mode.
@cloud/tiny3/components/table/TiTableVirtualScrollViewportComponent.ts:34:14 - error NG2016: The component TiTableVirtualScrollViewportComponent inherits its constructor from CdkVirtualScrollViewport, but the latter has a constructor parameter that is not compatible with dependency injection. Either add an explicit constructor to TiTableVirtualScrollViewportComponent or change CdkVirtualScrollViewport's constructor to use parameters that are valid for DI.
34 export class TiTableVirtualScrollViewportComponent extends CdkVirtualScrollViewport implements OnInit {
Please provide the environment you discovered this bug in (run ng version)
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
A comp extends CdkVirtualScrollViewport, build success with angular@14, but build fail with angular@15
The comp with no constructor, so should not show this ERROR:
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
Maybe this is a specific example:
#48152
The text was updated successfully, but these errors were encountered: