Nrwl Nx generates service instead of lib?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Nrwl Nx generates service instead of lib?



In the root of my Nx workspace, when I run the command ng g lib my-lib it generates a service called MyLibService in a myLib/src/libs folder in the root of my workspace. I would expect it to create a new lib inside the libs folder (libs/my-lib/src). (It used to do this before I upgraded to v6.)


ng g lib my-lib


MyLibService


myLib/src/libs


libs/my-lib/src



Also, nothing is added to my angular.json file after the service is created.


angular.json



So there's at least three things going wrong:


service


lib


angular.json



What am I doing wrong?



Thanks.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived