Title: Error serving one of the examples. No NgModule metadata found for 'AppModule' · Issue #1 · codecraft-tv/angular-sample-code · GitHub
Open Graph Title: Error serving one of the examples. No NgModule metadata found for 'AppModule' · Issue #1 · codecraft-tv/angular-sample-code
X Title: Error serving one of the examples. No NgModule metadata found for 'AppModule' · Issue #1 · codecraft-tv/angular-sample-code
Description: Hi! Summary I just want to run the example in /angular-sample-code/12.routing/6.router-guards but after installing the dependencies and executing the command ng serve I receive the error No NgModule metadata found for 'AppModule'. Steps ...
Open Graph Description: Hi! Summary I just want to run the example in /angular-sample-code/12.routing/6.router-guards but after installing the dependencies and executing the command ng serve I receive the error No NgModul...
X Description: Hi! Summary I just want to run the example in /angular-sample-code/12.routing/6.router-guards but after installing the dependencies and executing the command ng serve I receive the error No NgModul...
Opengraph URL: https://github.com/codecraft-tv/angular-sample-code/issues/1
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error serving one of the examples. No NgModule metadata found for 'AppModule'","articleBody":"Hi!\r\n\r\n**Summary**\r\nI just want to run the example in `/angular-sample-code/12.routing/6.router-guards` but after installing the dependencies and executing the command `ng serve` I receive the error `No NgModule metadata found for 'AppModule'`.\r\n\r\n**Steps to reproduce**\r\n1. Download the repo at https://github.com/codecraft-tv/angular-sample-code.\r\n2. Go to the below directory: `/angular-sample-code/12.routing/6.router-guards`.\r\n3. Execute `npm install`.\r\n4. Execute `ng serve`.\r\n\r\n**What is the current bug behavior?**\r\nAfter the last of the steps, I receive this error:\r\n`No NgModule metadata found for 'AppModule'`\r\nand the application can not be correctly served.\r\n\r\n**What is the expected correct behavior?**\r\nCorrectly serve the application.\r\n\r\n**Relevant logs and/or screenshots**\r\nThis is the complete output of the command `ng serve`.\r\n\r\n```\r\nYour global Angular CLI version (8.3.12) is greater than your local\r\nversion (6.0.8). The local Angular CLI version is used.\r\n\r\nTo disable this warning use \"ng config -g cli.warnings.versionMismatch false\".\r\n** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **\r\n 10% building modules 6/6 modules 0 activeℹ 「wds」: Project is running at http://localhost:4200/\r\nℹ 「wds」: webpack output is served from /\r\nℹ 「wds」: 404s will fallback to //index.html\r\n \r\nDate: 2020-01-17T12:02:05.553Z\r\nHash: cb595c67827afba0e932\r\nTime: 2424ms\r\nchunk {main} main.js, main.js.map (main) 355 kB [entry] [rendered]\r\nchunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 354 kB [entry] [rendered]\r\nchunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]\r\nchunk {styles} styles.js, styles.js.map (styles) 464 kB [entry] [rendered]\r\nchunk {vendor} vendor.js, vendor.js.map (vendor) 5.5 kB [initial] [rendered]\r\n\r\nERROR in No NgModule metadata found for 'AppModule'.\r\nℹ 「wdm」: Failed to compile.\r\n```","author":{"url":"https://github.com/minicatsCB","@type":"Person","name":"minicatsCB"},"datePublished":"2020-01-17T12:14:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/angular-sample-code/issues/1"}
| 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:aeef7b24-c5e4-3b1d-0c36-7479bac14083 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CD4:2ED1BB:164A8BB:1CD415B:697D591E |
| html-safe-nonce | 95b4fadbeeb71cb716c7c13a661a9c5c5cba990418ee41bcd6cf214599aee6d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0Q0OjJFRDFCQjoxNjRBOEJCOjFDRDQxNUI6Njk3RDU5MUUiLCJ2aXNpdG9yX2lkIjoiODk4OTczNDE3NTcyODU1NjMxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 89ba7b445fb9a6f655799b390a372ae3918df4a24c7513ff723d83f72fec9030 |
| hovercard-subject-tag | issue:551381820 |
| 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/codecraft-tv/angular-sample-code/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/408252ee1e414e17df5d405dbb4880378fbd3898368925a69cee51a60a3ed9c4/codecraft-tv/angular-sample-code/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/408252ee1e414e17df5d405dbb4880378fbd3898368925a69cee51a60a3ed9c4/codecraft-tv/angular-sample-code/issues/1 |
| og:image:alt | Hi! Summary I just want to run the example in /angular-sample-code/12.routing/6.router-guards but after installing the dependencies and executing the command ng serve I receive the error No NgModul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | minicatsCB |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/codecraft-tv/angular-sample-code git https://github.com/codecraft-tv/angular-sample-code.git |
| octolytics-dimension-user_id | 13587475 |
| octolytics-dimension-user_login | codecraft-tv |
| octolytics-dimension-repository_id | 146444272 |
| octolytics-dimension-repository_nwo | codecraft-tv/angular-sample-code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 146444272 |
| octolytics-dimension-repository_network_root_nwo | codecraft-tv/angular-sample-code |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width