Title: Services do not work in production build · Issue #808 · angular/angular-cli · GitHub
Open Graph Title: Services do not work in production build · Issue #808 · angular/angular-cli
X Title: Services do not work in production build · Issue #808 · angular/angular-cli
Description: OS? Windows 10 Versions. 1.0.0-beta.1 3.Created a sample app using angular cli and created a service under shared folder. Run ng build -prod Run ng serve -prod Get error "Error loading http://localhost:4200/app/shared/index.js as "./app/...
Open Graph Description: OS? Windows 10 Versions. 1.0.0-beta.1 3.Created a sample app using angular cli and created a service under shared folder. Run ng build -prod Run ng serve -prod Get error "Error loading http://local...
X Description: OS? Windows 10 Versions. 1.0.0-beta.1 3.Created a sample app using angular cli and created a service under shared folder. Run ng build -prod Run ng serve -prod Get error "Error loading http://...
Opengraph URL: https://github.com/angular/angular-cli/issues/808
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Services do not work in production build","articleBody":"1. OS? Windows 10\n2. Versions. 1.0.0-beta.1\n\n3.Created a sample app using angular cli and created a service under shared folder. \nRun ng build -prod\nRun ng serve -prod\nGet error \n\n> \"Error loading http://localhost:4200/app/shared/index.js as \"./app/shared\" from http://localhost:4200/main.js ; Zone: \u003croot> ; Task: Promise.then ; Value: Error: Error: XHR error (404 Not Found) loading http://localhost:4200/app/shared/index.js(…)\"\n1. Not happening in dev build/\n\n[test.zip](https://github.com/angular/angular-cli/files/269613/test.zip)\n","author":{"url":"https://github.com/unnijeevan","@type":"Person","name":"unnijeevan"},"datePublished":"2016-05-18T03:43:20Z","url":"https://github.com/angular/angular-cli/issues/808"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0a52c0c2-fbeb-3beb-430d-2ee6320b46b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E950:343AF8:304FC:421A9:6B059340 |
| html-safe-nonce | 772513a0977d1b6290278da62c4586b9f28f3e21a22e679b4ba61d5922f70a19 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTUwOjM0M0FGODozMDRGQzo0MjFBOTo2QjA1OTM0MCIsInZpc2l0b3JfaWQiOiIzNjAxMTUwMjQ5MjEwODQzOTY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cf490d57df5b8ea6f2a4d3332fa1e5a5288c5535ef7b855efdeeda50595458e4 |
| hovercard-subject-tag | issue:155410771 |
| 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/808/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a37ebae719e7fa6d11b2c2ecda50af1aac96cd10f80461e0557d828faa3a1cc1/angular/angular-cli/issues/808 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a37ebae719e7fa6d11b2c2ecda50af1aac96cd10f80461e0557d828faa3a1cc1/angular/angular-cli/issues/808 |
| og:image:alt | OS? Windows 10 Versions. 1.0.0-beta.1 3.Created a sample app using angular cli and created a service under shared folder. Run ng build -prod Run ng serve -prod Get error "Error loading http://local... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | unnijeevan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| 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 | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width