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
Importing standalone components from lib into other lib's module breaks build #2398
Comments
This error is expected; the value of the
|
Adding |
I can't look into it further now as I'm on vacation without a laptop, so can't test with the repro from mobile for now. |
This is fine, since there's a pretty easy workaround for now. Have a great vacation. |
Hi @JoostK any news regarding this issue, please? |
This turned out to be missing support from the AOT compiler which has been addressed in angular/angular#48091.
|
This issue has been automatically locked due to inactivity. |
Type of Issue
Description
The build breaks as sone as angular standalone components are added to another lib's ngModule via spreaded array.
Corresponding issue inside the nrwl nx repo: nrwl/nx#11451
Workaround: nrwl/nx#11451 (comment)
How To Reproduce
The following is a nrwl nx repo which used buildable libraries. This process uses ng-packagr under the hood.
https://github.com/TomTomB/nx-ng-standalone-comps-issue
Expected Behaviour
This should work in the same way as e.g. spreading a (non standalone) components array into the ngModule's delarations.
Version Information
The text was updated successfully, but these errors were encountered: