Problem :
I am facing following error when I try to use the CLI to create a new component :
Could not find an ngmodule. use the skip-import option to skip importing in ngmodule.
using below command :
ng g c my-component --project=my-project
But no component is created.
I also tried by dropping the --project flag entirely so just used ng g c my-component but still I am facing the same issue. Not sure how to get rid of it.
Any pointers regarding how to fix this issue?
My Environment is as follows :
1. Angular CLI:- 6.0.8
2. Node:- 8.9.4
3. OS:- win32 x64
4. Angular:- 6.0.6
5. Rxjs:- 6.2.1
6. Typescript:- 2.7.2
7. Webpack :- 4.8.3
8. nrwl/nx:- 6.1.0