Generate library to the wrong place #32989
Replies: 2 comments
-
1st part, But the another problem still exists why nested the library name "ui-common-lib" into library? Is this an Nx best practice? \LIBS |
Beta Was this translation helpful? Give feedback.
-
2nd part |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Could you please help me what I did wrong.
I executed the following:
nx.json contains:
The result is to create a library to workspace root instead of libs folder.
And what it created contains nested ui-common-lib folder, why?
What should I do to create the library into
libs
folder? Does not matter if I create thelibs
folder or not.Another problem is, if it create into workspace root, create the following folder structure:
ui-common-lib/src/lib/ui-common-lib
the last
ui-common-lib
folder why needed ???angular cli when create a lib only create ui-common-lib/src/lib
how can I eliminate it with any Nx command?
Nx global and local version is v21.6.3
Beta Was this translation helpful? Give feedback.
All reactions