Description
Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag
angular-cli
.If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.
Originally posted by @clydin in #11404
It is impossible to bring into the angular library the code that uses Form, ApplicationRaf and other components. There is always an error:
TS2345: Argument of type
import("/Users/.../project1/frontend/node_modules/@angular/core/index").ApplicationRef
is not assignable to parameter of type
import("/Users/.../project2/ngx/node_modules/@angular/core/index").ApplicationRef
Types have separate declarations of a private property _destroyed
Why do you think it's not your fault?
The library project and project 2 use the same version of angular, and an object of the same type is passed, but for some reason this causes an error.
Consider fixing this, or at least suggest good workarounds.
Currently, objects can only be send to lib by assigning them the any type.