Description
Versions
Angular CLI: 6.0.0
Node: 8.9.1
OS: linux x64
Angular: 6.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, http, language-service, material, platform-browser
... platform-browser-dynamic, platform-server, router
Package Version
angular-devkit/architect 0.6.0
angular-devkit/build-angular 0.6.0
angular-devkit/build-optimizer 0.6.0
angular-devkit/core 0.6.0
angular-devkit/schematics 0.6.0
ngtools/webpack 6.0.0
schematics/angular 0.6.0
schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Repro steps
ng g component home
Could not find an NgModule. Use the skip-import option to skip importing in NgModule.
ng g component home --skip-import (same as generate everything)
Success generate component but wrong path not inside "src" but create new folder in root "home/user/PATH/app-id/home/home.component.*