Title: TypeError: Cannot read property 'text' of undefined · Issue #8216 · angular/angular-cli · GitHub
Open Graph Title: TypeError: Cannot read property 'text' of undefined · Issue #8216 · angular/angular-cli
X Title: TypeError: Cannot read property 'text' of undefined · Issue #8216 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Angular CLI: 1.5.0-rc.5 Node: 8.8.1 OS: darwin x64 Angular: 5.0.0-rc.7 ... animations, common, comp...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Angular CLI: 1.5.0-rc.5 Node: 8.8.1 OS: darwin x64 Angular:...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Angular CLI: 1.5.0-rc.5 Node: 8.8.1 OS: darwin x64 Angul...
Opengraph URL: https://github.com/angular/angular-cli/issues/8216
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: Cannot read property 'text' of undefined","articleBody":"\u003c!--\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### Versions.\r\n```\r\nAngular CLI: 1.5.0-rc.5\r\nNode: 8.8.1\r\nOS: darwin x64\r\nAngular: 5.0.0-rc.7\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n\r\n@angular/cli: 1.5.0-rc.5\r\n@angular-devkit/build-optimizer: 0.0.31\r\n@angular-devkit/core: 0.0.20\r\n@angular-devkit/schematics: 0.0.34\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.8.0-rc.5\r\n@schematics/angular: 0.0.48\r\ntypescript: 2.4.2\r\nwebpack-bundle-analyzer: 2.9.0\r\nwebpack: 3.8.1\r\n```\r\n\r\n### Repro steps.\r\nin my package, anyway\r\n`ng serve --ssl --public-host=//localhost:4200/sockjs-node/ --deploy-url=//localhost:4200/ --serve-path=/`\r\nmake a trivial change to a template\r\n\r\n### The log given by the failure.\r\n```\r\nERROR in Error: TypeError: Cannot read property 'text' of undefined\r\n at getErrorSpanForNode (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:7304:40)\r\n at createDiagnosticForNodeInSourceFile (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:7229:20)\r\n at Object.createDiagnosticForNode (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:7225:16)\r\n at error (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:27167:22)\r\n at resolveExternalModule (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:28226:17)\r\n at resolveExternalModuleNameWorker (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:28213:20)\r\n at Object.getExternalModuleFileFromDeclaration (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:47978:32)\r\n at tryGetModuleNameFromDeclaration (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:15517:50)\r\n at Object.getExternalModuleNameLiteral (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:15481:20)\r\n at createRequireCall (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:61248:33)\r\n at visitExportDeclaration (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:61310:45)\r\n at sourceElementVisitor (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:61091:28)\r\n at Object.visitNodes (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:49280:48)\r\n at transformCommonJSModule (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:60834:40)\r\n at transformSourceFile (/Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:60808:27)\r\n at /Users/karp/Documents/git/bgg/geekui2/node_modules/typescript/lib/typescript.js:2492:86\r\n```\r\n\r\n### Desired functionality.\r\nSuccessful compilation\r\n\r\n### Mention any other details that might be useful.\r\nAfter the first build, everything works correctly. But a trivial change to a template or a change to whitspace in a ts file gives the error shown.\r\n\r\n","author":{"url":"https://github.com/karptonite","@type":"Person","name":"karptonite"},"datePublished":"2017-10-27T15:57:24Z","url":"https://github.com/angular/angular-cli/issues/8216"}
| 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:acfd1fa9-4f54-4a25-316f-01e73b872e4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82C2:2AAD2E:29B5884:37B57F9:6B01C054 |
| html-safe-nonce | 1f69d5c4c0df96039c1a9d3149901580a0fd27952cb3966fb92d214ab6d19997 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkMyOjJBQUQyRToyOUI1ODg0OjM3QjU3Rjk6NkIwMUMwNTQiLCJ2aXNpdG9yX2lkIjoiNTY2MjA2NTc3MzM0Mjk5ODYxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 039711833ae01ba7f283b44ed2532e14e04a520eebcb659584e709ce08beedd3 |
| hovercard-subject-tag | issue:269155359 |
| 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/8216/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bfd6e12c58d04eb160a9580f11a774e995982c9c5b02a15771d47c1c8ed33e05/angular/angular-cli/issues/8216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bfd6e12c58d04eb160a9580f11a774e995982c9c5b02a15771d47c1c8ed33e05/angular/angular-cli/issues/8216 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Angular CLI: 1.5.0-rc.5 Node: 8.8.1 OS: darwin x64 Angular:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karptonite |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width