Title: "ng e2e --prod" fails · Issue #10909 · angular/angular-cli · GitHub
Open Graph Title: "ng e2e --prod" fails · Issue #10909 · angular/angular-cli
X Title: "ng e2e --prod" fails · Issue #10909 · angular/angular-cli
Description: Versions Angular CLI: 6.0.3 │ Node: 10.0.0 │ OS: linux x64 │ Angular: 6.0.2 │ ... animations, common, compiler, compiler-cli, core, forms │ ... http, language-service, platform-browser │ ... platform-browser-dynamic, router │ │ Package V...
Open Graph Description: Versions Angular CLI: 6.0.3 │ Node: 10.0.0 │ OS: linux x64 │ Angular: 6.0.2 │ ... animations, common, compiler, compiler-cli, core, forms │ ... http, language-service, platform-browser │ ... platfo...
X Description: Versions Angular CLI: 6.0.3 │ Node: 10.0.0 │ OS: linux x64 │ Angular: 6.0.2 │ ... animations, common, compiler, compiler-cli, core, forms │ ... http, language-service, platform-browser │ ... platfo...
Opengraph URL: https://github.com/angular/angular-cli/issues/10909
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"ng e2e --prod\" fails","articleBody":"\u003c!--\r\nWe will close this issue if you don't provide the needed information.\r\nFor feature requests, delete the form below and describe the requirements and use case.\r\n--\u003e\r\n\r\n### Versions\r\n```\r\nAngular CLI: 6.0.3 │\r\nNode: 10.0.0 │\r\nOS: linux x64 │\r\nAngular: 6.0.2 │\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\nPackage Version │\r\n----------------------------------------------------------- │\r\n@angular-devkit/architect 0.6.3 │\r\n@angular-devkit/build-angular 0.6.3 │\r\n@angular-devkit/build-optimizer 0.6.3 │\r\n@angular-devkit/core 0.6.3 │\r\n@angular-devkit/schematics 0.6.3 │\r\n@angular/cli 6.0.3 │\r\n@ngtools/webpack 6.0.3 │\r\n@schematics/angular 0.6.3 │\r\n@schematics/update 0.6.3 │\r\nrxjs 6.1.0 │\r\ntypescript 2.7.2 │\r\nwebpack 4.8.3 │\r\n \r\n```\r\n\r\n### Repro steps\r\n\u003c!--\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--\u003e\r\n* Step 1: create a new app with `ng new its-a-test-app`\r\n* Step 2 run e2e tests normally with `ng e2e`\r\n* Step 3 run e2e tests against production configuration `ng e2e --prod`\r\n\r\n\r\n### Observed behavior\r\n```\r\nConfiguration 'production' could not be found in project 'its-a-test-e2e'.\r\nError: Configuration 'production' could not be found in project 'its-a-test-e2e'.\r\n at Architect.getBuilderConfiguration (/tmp/its-a-test/node_modules/@angular-devkit/architect/src/architect.js:102:23)\r\n at MergeMapSubscriber._loadWorkspaceAndArchitect.pipe.operators_1.concatMap [as project] (/tmp/its-a-test/node_modules/@angular/cli/models/architect-command.js:64:55)\r\n at MergeMapSubscriber._tryNext (/tmp/its-a-test/node_modules/rxjs/internal/operators/mergeMap.js:122:27)\r\n at MergeMapSubscriber._next (/tmp/its-a-test/node_modules/rxjs/internal/operators/mergeMap.js:112:18)\r\n at MergeMapSubscriber.Subscriber.next (/tmp/its-a-test/node_modules/rxjs/internal/Subscriber.js:103:18)\r\n at TapSubscriber._next (/tmp/its-a-test/node_modules/rxjs/internal/operators/tap.js:109:26)\r\n at TapSubscriber.Subscriber.next (/tmp/its-a-test/node_modules/rxjs/internal/Subscriber.js:103:18)\r\n at MergeMapSubscriber.notifyNext (/tmp/its-a-test/node_modules/rxjs/internal/operators/mergeMap.js:141:26)\r\n at InnerSubscriber._next (/tmp/its-a-test/node_modules/rxjs/internal/InnerSubscriber.js:30:21)\r\n at InnerSubscriber.Subscriber.next (/tmp/its-a-test/node_modules/rxjs/internal/Subscriber.js:103:18) \r\n\r\n```\r\n\r\n### Desired behavior\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\nWhat did you expect to see?\r\n--\u003e\r\n\r\n`ng e2e --prod --aot` should run the e2e tests against the production, AOT-compiled build of the application. I had an issue solely on production/AOT, so I would like to test against this configuration.\r\n","author":{"url":"https://github.com/tristanmkernan","@type":"Person","name":"tristanmkernan"},"datePublished":"2018-05-18T01:25:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10909/angular-cli/issues/10909"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c3540df8-4b4e-7151-51e5-cdb68996d1b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B592:DEB58:53D597:754A20:698226D0 |
| html-safe-nonce | 79f568d03f4a6841b87afb8aa38ede1751387eca5f32d89e8664f47686e52601 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTkyOkRFQjU4OjUzRDU5Nzo3NTRBMjA6Njk4MjI2RDAiLCJ2aXNpdG9yX2lkIjoiNTU5NDA4Mzc1NTM1MTQ4NDExMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e4b80591e6407326669f3e4795aa42e97bae3cc828bf49658afda5debdd82f5 |
| hovercard-subject-tag | issue:324239326 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/10909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7476168bdb7687845902a33e173e3853cebc808ec5152988a3e934cefed6043/angular/angular-cli/issues/10909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7476168bdb7687845902a33e173e3853cebc808ec5152988a3e934cefed6043/angular/angular-cli/issues/10909 |
| og:image:alt | Versions Angular CLI: 6.0.3 │ Node: 10.0.0 │ OS: linux x64 │ Angular: 6.0.2 │ ... animations, common, compiler, compiler-cli, core, forms │ ... http, language-service, platform-browser │ ... platfo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tristanmkernan |
| hostname | github.com |
| expected-hostname | github.com |
| None | f29b4256dc96a8de29f6e5fad4bf98fdbfc5cb1dbb313013053581f8470d8a21 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 61292800a4f1180f0b13782adc5da7267ec99b94 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width