{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/11137","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/11137/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/11137/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/11137/events","html_url":"https://github.com/angular/angular-cli/issues/11137","id":330013149,"node_id":"MDU6SXNzdWUzMzAwMTMxNDk=","number":11137,"title":"Error: Local workspace file ('angular.json') could not be found.","user":{"login":"hfakouri","id":24948522,"node_id":"MDQ6VXNlcjI0OTQ4NTIy","avatar_url":"https://avatars2.githubusercontent.com/u/24948522?v=4","gravatar_id":"","url":"https://api.github.com/users/hfakouri","html_url":"https://github.com/hfakouri","followers_url":"https://api.github.com/users/hfakouri/followers","following_url":"https://api.github.com/users/hfakouri/following{/other_user}","gists_url":"https://api.github.com/users/hfakouri/gists{/gist_id}","starred_url":"https://api.github.com/users/hfakouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfakouri/subscriptions","organizations_url":"https://api.github.com/users/hfakouri/orgs","repos_url":"https://api.github.com/users/hfakouri/repos","events_url":"https://api.github.com/users/hfakouri/events{/privacy}","received_events_url":"https://api.github.com/users/hfakouri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-06T20:05:47Z","updated_at":"2018-06-07T16:57:08Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Area\r\n```\r\n- [x] devkit\r\n- [ ] schematics\r\n```\r\n\r\n### Versions\r\n<!--\r\nOutput from: `node --version` and `npm --version`.\r\n  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra? High Sierra?)\r\n-->\r\n`Angular CLI: 6.0.8`\r\n`Node: 8.11.2`\r\n`OS: win32 x64`\r\n`Angular: 6.0.3`\r\n`... animations, common, compiler, compiler-cli, core, forms`\r\n`... http, language-service, platform-browser`\r\n`... platform-browser-dynamic, router`\r\n\r\n`Package                           Version`\r\n`-----------------------------------------------------------`\r\n`@angular-devkit/architect         0.6.8`\r\n`@angular-devkit/build-angular     0.6.8`\r\n`@angular-devkit/build-optimizer   0.6.8`\r\n`@angular-devkit/core              0.6.8`\r\n`@angular-devkit/schematics        0.6.8`\r\n`@angular/cli                      6.0.8`\r\n`@ngtools/webpack                  6.0.8`\r\n`@schematics/angular               0.6.8`\r\n`@schematics/update                0.6.8`\r\n`rxjs                              6.2.0`\r\n`typescript                        2.7.2`\r\n`webpack                           4.8.3`\r\n\r\nWindows 7 x64\r\n\r\n### Repro steps\r\n<!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\nIn VS Code Integrated Terminal:\r\n`ng new sample`\r\n\r\nThen:\r\n`npm install --save @ng-bootstrap/ng-bootstrap`\r\n\r\nAnd then:\r\n`ng serve --open`\r\n\r\n### The log given by the failure\r\n<!-- Normally this include a stack trace and some more information. -->\r\n`Error: Local workspace file ('angular.json') could not be found.\r\nError: Local workspace file ('angular.json') could not be found.\r\n    at WorkspaceLoader._getProjectWorkspaceFilePath (C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\workspace-loader.js:37:19)\r\n    at WorkspaceLoader.loadWorkspace (C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\workspace-loader.js:24:21)\r\n    at ServeCommand._loadWorkspaceAndArchitect (C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\architect-command.js:180:32)\r\n    at ServeCommand.<anonymous> (C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\architect-command.js:47:25)\r\n    at Generator.next (<anonymous>)\r\n    at C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\architect-command.js:7:71\r\n    at new Promise (<anonymous>)\r\n    at __awaiter (C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\architect-command.js:3:12)\r\n    at ServeCommand.initialize (C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\architect-command.js:46:16)\r\n    at Object.<anonymous> (C:\\Users\\[username]\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\models\\command-runner.js:87:23)`\r\n\r\n### Desired functionality\r\n<!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nIt should open the browser and show the running angular app\r\n\r\n\r\n### Mention any other details that might be useful\r\n<!-- Please include a link to the repo if this is related to an OSS project. -->\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/395492082","html_url":"https://github.com/angular/angular-cli/issues/11137#issuecomment-395492082","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/11137","id":395492082,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQ5MjA4Mg==","user":{"login":"filipesilva","id":4172079,"node_id":"MDQ6VXNlcjQxNzIwNzk=","avatar_url":"https://avatars2.githubusercontent.com/u/4172079?v=4","gravatar_id":"","url":"https://api.github.com/users/filipesilva","html_url":"https://github.com/filipesilva","followers_url":"https://api.github.com/users/filipesilva/followers","following_url":"https://api.github.com/users/filipesilva/following{/other_user}","gists_url":"https://api.github.com/users/filipesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/filipesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipesilva/subscriptions","organizations_url":"https://api.github.com/users/filipesilva/orgs","repos_url":"https://api.github.com/users/filipesilva/repos","events_url":"https://api.github.com/users/filipesilva/events{/privacy}","received_events_url":"https://api.github.com/users/filipesilva/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T16:57:08Z","updated_at":"2018-06-07T16:57:08Z","author_association":"MEMBER","body":"Hi, I can't see that behaviour when following your repro. Can you provide a repository where this happens please?\r\n\r\nJust to confirm though, did you change directory into `sample` after `ng new`? Because if you didn't, you're still outside of the project and not serving anything."}}
{"actor":{"display_login":"filipesilva"}}