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
When building my library with it's dependency which is another library with single component I get this error: ERROR in Unable to write a reference to ButtonComponent
The compilationMode within tsconfig.lib.prod.json is set to partial. When I changed that end set "enableIvy": false similarly to your example everything works fine.
I have a complex project setup, a monorepo with multiple Angular libs.
Environment
nx : Not Found
@nrwl/angular : 12.4.0
@nrwl/cli : 12.4.0
@nrwl/cypress : 12.4.0
@nrwl/devkit : 12.4.0
@nrwl/eslint-plugin-nx : 12.4.0
@nrwl/express : Not Found
@nrwl/jest : 12.4.0
@nrwl/linter : 12.4.0
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/react : 12.0.8
@nrwl/schematics : Not Found
@nrwl/tao : 12.4.0
@nrwl/web : 12.0.8
@nrwl/workspace : 12.4.0
@nrwl/storybook : 12.4.0
@nrwl/gatsby : Not Found
typescript : 4.3.4
The text was updated successfully, but these errors were encountered:
I have figure out that the name of the lib within package.json must be exactly the same as the path declared within tsconfig.base.json e.g @component/ui/button.
Closing this ensure one issue being used to track the problem.
@va-stefanek Thanks for raising this! I'm currently working on a migration that will be included in Nx 12.9 (not released yet) that will fix this for anyone affected.
Current Behavior
When building my library with it's dependency which is another library with single component I get this error:
ERROR in Unable to write a reference to ButtonComponent
The
compilationMode
withintsconfig.lib.prod.json
is set topartial
. When I changed that end set"enableIvy": false
similarly to your example everything works fine.I see that there is similar close issue on Angular repo angular/angular#29361
Expected Behavior
Build should pass.
Steps to Reproduce
I have a complex project setup, a monorepo with multiple Angular libs.
Environment
nx : Not Found
@nrwl/angular : 12.4.0
@nrwl/cli : 12.4.0
@nrwl/cypress : 12.4.0
@nrwl/devkit : 12.4.0
@nrwl/eslint-plugin-nx : 12.4.0
@nrwl/express : Not Found
@nrwl/jest : 12.4.0
@nrwl/linter : 12.4.0
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/react : 12.0.8
@nrwl/schematics : Not Found
@nrwl/tao : 12.4.0
@nrwl/web : 12.0.8
@nrwl/workspace : 12.4.0
@nrwl/storybook : 12.4.0
@nrwl/gatsby : Not Found
typescript : 4.3.4
The text was updated successfully, but these errors were encountered: