Components with the same name (via alias) results in ngfactory with duplicate function implementations #19935
Labels
area: core
Issues related to the framework runtime
hotlist: components team
Related to Angular CDK or Angular Material
regression
Indicates than the issue relates to something that worked in a previous version
Steps to reproduce
npm i
gulp e2e
After this runs once, you can re-run
ngc
as:(
gulp e2e
will build all of the dependencies as well)Expected
The e2e app compiles successfully (as with Angular 4)
Actual
ngc
emits an errorThe file
e2e-app-module.ngfactory.ts
is not written to the file system.Commentary
E2eAppModule
declares (and marks asentryComponents
) two classes both calledTestDialog
. In the module file, they are imported like:Renaming one of them resolves the error.
cc @tbosch @chuckjaz @crisbeto
The text was updated successfully, but these errors were encountered: