Title: Project fails to compile after adding moment library and its typings to the project · Issue #273 · angular/angular-cli · GitHub
Open Graph Title: Project fails to compile after adding moment library and its typings to the project · Issue #273 · angular/angular-cli
X Title: Project fails to compile after adding moment library and its typings to the project · Issue #273 · angular/angular-cli
Description: I have done the following list of commands using the angular-cli@0.0.24 on windows and linux. The last ng serve command throws the "Cannot find namespace 'moment'" error. ng new ng2cli-moment cd ng2cli-moment/ ng serve npm i moment --sav...
Open Graph Description: I have done the following list of commands using the angular-cli@0.0.24 on windows and linux. The last ng serve command throws the "Cannot find namespace 'moment'" error. ng new ng2cli-moment cd ng...
X Description: I have done the following list of commands using the angular-cli@0.0.24 on windows and linux. The last ng serve command throws the "Cannot find namespace 'moment'" error. ng new n...
Opengraph URL: https://github.com/angular/angular-cli/issues/273
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Project fails to compile after adding moment library and its typings to the project","articleBody":"I have done the following list of commands using the angular-cli@0.0.24 on windows and linux. The last `ng serve` command throws the \"Cannot find namespace 'moment'\" error.\n\n```\nng new ng2cli-moment\ncd ng2cli-moment/\nng serve\nnpm i moment --save\nng serve\ntypings install moment --ambient --save\nng serve\n\nLivereload server on http://localhost:49152\nServing on http://localhost:4200/\n[DiffingTSCompiler]: Typescript found the following errors:\n c:/Users/kovax/workspace/ng2cli-moment/typings/browser/ambient/moment/moment.d.ts (9, 21): Cannot find namespace 'moment'.\nError: [DiffingTSCompiler]: Typescript found the following errors:\n c:/Users/kovax/workspace/ng2cli-moment/typings/browser/ambient/moment/moment.d.ts (9, 21): Cannot find namespace 'moment'.\n at DiffingTSCompiler.doFullBuild (c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\lib\\broccoli\\broccoli-typescript.js:202:29)\n at DiffingTSCompiler.rebuild (c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\lib\\broccoli\\broccoli-typescript.js:101:18)\n at DiffingPluginWrapper.rebuild (c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\lib\\broccoli\\diffing-broccoli-plugin.js:87:45)\n at c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\node_modules\\angular-cli\\node_modules\\broccoli\\lib\\api_compat.js:42:21\n at lib$rsvp$$internal$$tryCatch (c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\node_modules\\angular-cli\\node_modules\\rsvp\\dist\\rsvp.js:1036:16)\n at lib$rsvp$$internal$$invokeCallback (c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\node_modules\\angular-cli\\node_modules\\rsvp\\dist\\rsvp.js:1048:17)\n at c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\node_modules\\angular-cli\\node_modules\\rsvp\\dist\\rsvp.js:331:11\n at lib$rsvp$asap$$flush (c:\\Users\\kovax\\workspace\\ng2cli-moment\\node_modules\\angular-cli\\node_modules\\angular-cli\\node_modules\\rsvp\\dist\\rsvp.js:1198:9)\n at nextTickCallbackWith0Args (node.js:433:9)\n at process._tickCallback (node.js:362:13)\n```\n","author":{"url":"https://github.com/kovax","@type":"Person","name":"kovax"},"datePublished":"2016-03-03T16:00:30Z","url":"https://github.com/angular/angular-cli/issues/273"}
| 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:b56045a7-471d-9e8e-caa7-9ad8a95d5c3c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D60:7C906:16F8F91:1F6945F:6B057B56 |
| html-safe-nonce | dc1e1c0cd5737d5183398ac75ae047eb7f515c207af7cdf8f355fb6721773c22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDYwOjdDOTA2OjE2RjhGOTE6MUY2OTQ1Rjo2QjA1N0I1NiIsInZpc2l0b3JfaWQiOiIzODc3MjY5NDIzMTc4MjE4MzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 08906c562bc8968064fdea72c3572c179dd4bc1184a4a5c62d80f3de66e5203a |
| hovercard-subject-tag | issue:138218709 |
| 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/273/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a32ae45bdcdf06a9ac9abca26c570808ce6d4dafe5cadfa2e976d2089a73b89b/angular/angular-cli/issues/273 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a32ae45bdcdf06a9ac9abca26c570808ce6d4dafe5cadfa2e976d2089a73b89b/angular/angular-cli/issues/273 |
| og:image:alt | I have done the following list of commands using the angular-cli@0.0.24 on windows and linux. The last ng serve command throws the "Cannot find namespace 'moment'" error. ng new ng2cli-moment cd ng... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kovax |
| hostname | github.com |
| expected-hostname | github.com |
| None | 507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada |
| 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 | e7a883ae3b439b8952652eaa7803e2587f30e339 |
| 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