{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/10653","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/10653/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/10653/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/10653/events","html_url":"https://github.com/angular/angular-cli/issues/10653","id":320437652,"number":10653,"title":"ng generate error","user":{"login":"nginx17","id":10776104,"avatar_url":"https://avatars0.githubusercontent.com/u/10776104?v=4","gravatar_id":"","url":"https://api.github.com/users/nginx17","html_url":"https://github.com/nginx17","followers_url":"https://api.github.com/users/nginx17/followers","following_url":"https://api.github.com/users/nginx17/following{/other_user}","gists_url":"https://api.github.com/users/nginx17/gists{/gist_id}","starred_url":"https://api.github.com/users/nginx17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nginx17/subscriptions","organizations_url":"https://api.github.com/users/nginx17/orgs","repos_url":"https://api.github.com/users/nginx17/repos","events_url":"https://api.github.com/users/nginx17/events{/privacy}","received_events_url":"https://api.github.com/users/nginx17/received_events","type":"User","site_admin":false},"labels":[{"id":335691299,"url":"https://api.github.com/repos/angular/angular-cli/labels/comp:%20cli/generate","name":"comp: cli/generate","color":"c7def8","default":false},{"id":531675050,"url":"https://api.github.com/repos/angular/angular-cli/labels/freq3:%20high","name":"freq3: high","color":"fbca04","default":false},{"id":531675532,"url":"https://api.github.com/repos/angular/angular-cli/labels/severity5:%20regression","name":"severity5: regression","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"Brocco","id":1565117,"avatar_url":"https://avatars0.githubusercontent.com/u/1565117?v=4","gravatar_id":"","url":"https://api.github.com/users/Brocco","html_url":"https://github.com/Brocco","followers_url":"https://api.github.com/users/Brocco/followers","following_url":"https://api.github.com/users/Brocco/following{/other_user}","gists_url":"https://api.github.com/users/Brocco/gists{/gist_id}","starred_url":"https://api.github.com/users/Brocco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brocco/subscriptions","organizations_url":"https://api.github.com/users/Brocco/orgs","repos_url":"https://api.github.com/users/Brocco/repos","events_url":"https://api.github.com/users/Brocco/events{/privacy}","received_events_url":"https://api.github.com/users/Brocco/received_events","type":"User","site_admin":false},"assignees":[{"login":"Brocco","id":1565117,"avatar_url":"https://avatars0.githubusercontent.com/u/1565117?v=4","gravatar_id":"","url":"https://api.github.com/users/Brocco","html_url":"https://github.com/Brocco","followers_url":"https://api.github.com/users/Brocco/followers","following_url":"https://api.github.com/users/Brocco/following{/other_user}","gists_url":"https://api.github.com/users/Brocco/gists{/gist_id}","starred_url":"https://api.github.com/users/Brocco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brocco/subscriptions","organizations_url":"https://api.github.com/users/Brocco/orgs","repos_url":"https://api.github.com/users/Brocco/repos","events_url":"https://api.github.com/users/Brocco/events{/privacy}","received_events_url":"https://api.github.com/users/Brocco/received_events","type":"User","site_admin":false}],"milestone":null,"comments":36,"created_at":"2018-05-04T21:36:49Z","updated_at":"2018-05-09T20:49:00Z","closed_at":null,"author_association":"NONE","body":"### Versions\r\nAngular CLI: 6.0.0\r\nNode: 8.9.1\r\nOS: linux x64\r\nAngular: 6.0.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... forms, http, language-service, material, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\nangular-devkit/architect         0.6.0\r\nangular-devkit/build-angular     0.6.0\r\nangular-devkit/build-optimizer   0.6.0\r\nangular-devkit/core              0.6.0\r\nangular-devkit/schematics        0.6.0\r\nngtools/webpack                  6.0.0\r\nschematics/angular               0.6.0\r\nschematics/update                0.6.0\r\nrxjs                              6.1.0\r\ntypescript                        2.7.2\r\nwebpack                           4.6.0\r\n\r\n### Repro steps\r\n\r\nng g component home\r\n> Could not find an NgModule. Use the skip-import option to skip importing in NgModule.\r\n\r\nng g component home --skip-import (same as generate everything)\r\n> Success generate component but wrong path not inside **\"src\"** but create new folder in root \"home/user/PATH/app-id/home/home.component.* \r\n\r\n![screenshot from 2018-05-05 04-30-43](https://user-images.githubusercontent.com/10776104/39654014-799f009e-501d-11e8-8864-1d9017c28823.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/387871022","html_url":"https://github.com/angular/angular-cli/issues/10653#issuecomment-387871022","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/10653","id":387871022,"user":{"login":"matheusdavidson","id":2229994,"avatar_url":"https://avatars1.githubusercontent.com/u/2229994?v=4","gravatar_id":"","url":"https://api.github.com/users/matheusdavidson","html_url":"https://github.com/matheusdavidson","followers_url":"https://api.github.com/users/matheusdavidson/followers","following_url":"https://api.github.com/users/matheusdavidson/following{/other_user}","gists_url":"https://api.github.com/users/matheusdavidson/gists{/gist_id}","starred_url":"https://api.github.com/users/matheusdavidson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheusdavidson/subscriptions","organizations_url":"https://api.github.com/users/matheusdavidson/orgs","repos_url":"https://api.github.com/users/matheusdavidson/repos","events_url":"https://api.github.com/users/matheusdavidson/events{/privacy}","received_events_url":"https://api.github.com/users/matheusdavidson/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T20:49:00Z","updated_at":"2018-05-09T20:49:00Z","author_association":"NONE","body":"### ng --version ###\r\n```\r\nAngular CLI: 6.0.0\r\nNode: 9.10.1\r\nOS: darwin x64\r\nAngular: undefined\r\n...\r\n\r\nPackage                      Version\r\n------------------------------------------------------\r\n@angular-devkit/architect    0.6.0 (cli-only)\r\n@angular-devkit/core         0.6.0 (cli-only)\r\n@angular-devkit/schematics   0.6.0 (cli-only)\r\n@schematics/angular          0.6.0 (cli-only)\r\n@schematics/update           0.6.0 (cli-only)\r\nrxjs                         6.1.0 (cli-only)\r\n```\r\n\r\n### Generate the app / current directory ###\r\n```ng new project --routing --style=scss```\r\n```pwd: /var/www/project```\r\n\r\n### Generate command ###\r\n```ng g c test-component```\r\n\r\n### angular.json ###\r\n```json \r\n{\r\n  \"$schema\": \"./node_modules/@angular/cli/lib/config/schema.json\",\r\n  \"version\": 1,\r\n  \"newProjectRoot\": \"projects\",\r\n  \"projects\": {\r\n    \"project\": {\r\n      \"root\": \"\",\r\n      \"sourceRoot\": \"src\",\r\n      \"projectType\": \"application\",\r\n      \"prefix\": \"app\",\r\n      \"schematics\": {\r\n        \"@schematics/angular:component\": {\r\n          \"styleext\": \"scss\"\r\n        }\r\n      },\r\n      \"architect\": {\r\n        \"build\": {\r\n          \"builder\": \"@angular-devkit/build-angular:browser\",\r\n          \"options\": {\r\n            \"outputPath\": \"dist/project\",\r\n            \"index\": \"src/index.html\",\r\n            \"main\": \"src/main.ts\",\r\n            \"polyfills\": \"src/polyfills.ts\",\r\n            \"tsConfig\": \"src/tsconfig.app.json\",\r\n            \"assets\": [\r\n              \"src/favicon.ico\",\r\n              \"src/assets\"\r\n            ],\r\n            \"styles\": [\r\n              \"src/styles.scss\"\r\n            ],\r\n            \"scripts\": []\r\n          },\r\n          \"configurations\": {\r\n            \"production\": {\r\n              \"fileReplacements\": [\r\n                {\r\n                  \"replace\": \"src/environments/environment.ts\",\r\n                  \"with\": \"src/environments/environment.prod.ts\"\r\n                }\r\n              ],\r\n              \"optimization\": true,\r\n              \"outputHashing\": \"all\",\r\n              \"sourceMap\": false,\r\n              \"extractCss\": true,\r\n              \"namedChunks\": false,\r\n              \"aot\": true,\r\n              \"extractLicenses\": true,\r\n              \"vendorChunk\": false,\r\n              \"buildOptimizer\": true\r\n            }\r\n          }\r\n        },\r\n        \"serve\": {\r\n          \"builder\": \"@angular-devkit/build-angular:dev-server\",\r\n          \"options\": {\r\n            \"browserTarget\": \"project:build\"\r\n          },\r\n          \"configurations\": {\r\n            \"production\": {\r\n              \"browserTarget\": \"project:build:production\"\r\n            }\r\n          }\r\n        },\r\n        \"extract-i18n\": {\r\n          \"builder\": \"@angular-devkit/build-angular:extract-i18n\",\r\n          \"options\": {\r\n            \"browserTarget\": \"project:build\"\r\n          }\r\n        },\r\n        \"test\": {\r\n          \"builder\": \"@angular-devkit/build-angular:karma\",\r\n          \"options\": {\r\n            \"main\": \"src/test.ts\",\r\n            \"polyfills\": \"src/polyfills.ts\",\r\n            \"tsConfig\": \"src/tsconfig.spec.json\",\r\n            \"karmaConfig\": \"src/karma.conf.js\",\r\n            \"styles\": [\r\n              \"styles.scss\"\r\n            ],\r\n            \"scripts\": [],\r\n            \"assets\": [\r\n              \"src/favicon.ico\",\r\n              \"src/assets\"\r\n            ]\r\n          }\r\n        },\r\n        \"lint\": {\r\n          \"builder\": \"@angular-devkit/build-angular:tslint\",\r\n          \"options\": {\r\n            \"tsConfig\": [\r\n              \"src/tsconfig.app.json\",\r\n              \"src/tsconfig.spec.json\"\r\n            ],\r\n            \"exclude\": [\r\n              \"**/node_modules/**\"\r\n            ]\r\n          }\r\n        }\r\n      }\r\n    },\r\n    \"project-e2e\": {\r\n      \"root\": \"e2e/\",\r\n      \"projectType\": \"application\",\r\n      \"architect\": {\r\n        \"e2e\": {\r\n          \"builder\": \"@angular-devkit/build-angular:protractor\",\r\n          \"options\": {\r\n            \"protractorConfig\": \"e2e/protractor.conf.js\",\r\n            \"devServerTarget\": \"project:serve\"\r\n          }\r\n        },\r\n        \"lint\": {\r\n          \"builder\": \"@angular-devkit/build-angular:tslint\",\r\n          \"options\": {\r\n            \"tsConfig\": \"e2e/tsconfig.e2e.json\",\r\n            \"exclude\": [\r\n              \"**/node_modules/**\"\r\n            ]\r\n          }\r\n        }\r\n      }\r\n    }\r\n  },\r\n  \"defaultProject\": \"project\"\r\n}\r\n```\r\n\r\n### Folder directory screenshot ###\r\n![captura de tela 2018-05-09 as 17 48 17](https://user-images.githubusercontent.com/2229994/39838999-3c62c9ee-53b1-11e8-90e1-aa80119812d7.png)\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"matheusdavidson"}}