I get the error in the subject of this post when I use the CLI to create a new component: ng g c my-component --project=my-project (No component is created)
I've seen other posts with the same error message, but none of them also include Nrwl/Nx, which I believe is somehow involved. Project started as Ng4 and was upgraded to Ng6.
Environment:
UPDATE #1
I tried dropping the --project flag entirely ( so just ng g c my-component) and still get the same problem. Not sure what that means, yet.
1) Change current directory in cmd/terminal to src/app
cd src/app (linux)
cd .\src\app\ (windows)
2) Run commands now
ng g c myComponent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With