Title: `ng build` chokes on processing Angular source maps · Issue #5476 · angular/angular-cli · GitHub
Open Graph Title: `ng build` chokes on processing Angular source maps · Issue #5476 · angular/angular-cli
X Title: `ng build` chokes on processing Angular source maps · Issue #5476 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) bug report -> please search issues before submitting Versions. @angular/cli: 1.0.0-rc.2 node: 6.9.5 os: darwin x64 @angular/animations: 4.0.0-rc.4 @angular/common: 4.0.0-rc.4 @angular/compil...
Open Graph Description: Bug Report or Feature Request (mark with an x) bug report -> please search issues before submitting Versions. @angular/cli: 1.0.0-rc.2 node: 6.9.5 os: darwin x64 @angular/animations: 4.0.0-rc.4 @an...
X Description: Bug Report or Feature Request (mark with an x) bug report -> please search issues before submitting Versions. @angular/cli: 1.0.0-rc.2 node: 6.9.5 os: darwin x64 @angular/animations: 4.0.0-rc.4 ...
Opengraph URL: https://github.com/angular/angular-cli/issues/5476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ng build` chokes on processing Angular source maps","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n- [X] bug report -> please search issues before submitting\r\n\r\n\r\n### Versions.\r\n```\r\n@angular/cli: 1.0.0-rc.2\r\nnode: 6.9.5\r\nos: darwin x64\r\n@angular/animations: 4.0.0-rc.4\r\n@angular/common: 4.0.0-rc.4\r\n@angular/compiler: 4.0.0-rc.4\r\n@angular/core: 4.0.0-rc.4\r\n@angular/forms: 4.0.0-rc.4\r\n@angular/http: 4.0.0-rc.4\r\n@angular/material: 2.0.0-beta.2\r\n@angular/platform-browser: 4.0.0-rc.4\r\n@angular/platform-browser-dynamic: 4.0.0-rc.4\r\n@angular/platform-server: 4.0.0-rc.4\r\n@angular/router: 4.0.0-rc.4\r\n@angular/service-worker: 1.0.0-beta.7\r\n@angular/cli: 1.0.0-rc.2\r\n@angular/compiler-cli: 4.0.0-rc.2\r\n```\r\n\r\n\r\n### Repro steps.\r\n1. upgrade a project to angular 4.0.0-rc.4\r\n2. modify `node_modules/@angular/cli//models/webpack-configs/common.js\r\n` to no exclude `node_modules` from the `source-map-loader`\r\n3. build the project with `ng build` or `ng build --prod --sm`\r\n\r\n### The log given by the failure.\r\n```\r\n$ ng build --prod --sm\r\n 92% chunk asset optimization/Users/iminar/Dev/angular/aio/node_modules/source-map/lib/source-node.js:95\r\n var code = nextLine.substr(0, mapping.generatedColumn -\r\n ^\r\n\r\nTypeError: Cannot read property 'substr' of undefined\r\n at Function.\u003canonymous> (/Users/iminar/Dev/angular/aio/node_modules/source-map/lib/source-node.js:95:30)\r\n at Array.forEach (native)\r\n at SourceMapConsumer_eachMapping [as eachMapping] (/Users/iminar/Dev/angular/aio/node_modules/source-map/lib/source-map-consumer.js:155:14)\r\n at Function.SourceNode_fromStringWithSourceMap [as fromStringWithSourceMap] (/Users/iminar/Dev/angular/aio/node_modules/source-map/lib/source-node.js:80:24)\r\n at SourceMapSource.node (/Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/SourceMapSource.js:42:20)\r\n at ReplaceSource.node (/Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/ReplaceSource.js:69:29)\r\n at CachedSource.node (/Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/CachedSource.js:12:23)\r\n at /Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/ConcatSource.js:40:49\r\n at Array.map (native)\r\n at ConcatSource.node (/Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/ConcatSource.js:39:60)\r\n at /Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/ConcatSource.js:40:49\r\n at Array.map (native)\r\n at ConcatSource.node (/Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/ConcatSource.js:39:60)\r\n at /Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/ConcatSource.js:40:49\r\n at Array.map (native)\r\n at ConcatSource.node (/Users/iminar/Dev/angular/aio/node_modules/webpack-sources/lib/ConcatSource.js:39:60)\r\n```\r\n\r\n\r\n### Desired functionality.\r\nshould build 😄 \r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\n\r\n","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2017-03-17T15:25:41Z","url":"https://github.com/angular/angular-cli/issues/5476"}
| 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:4cf8837f-65e2-9f48-9b77-10aa20113f41 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDBE:187C1E:F33268:1421E16:6B01D76B |
| html-safe-nonce | 67e2e5772214f1dedd3c52b87b6452d5954377872bb14551ba3a39e18f8e5266 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREJFOjE4N0MxRTpGMzMyNjg6MTQyMUUxNjo2QjAxRDc2QiIsInZpc2l0b3JfaWQiOiI0MjQ3NDk2MzEyNzYyNzgzNTk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 016a7abf570953d9083f05c051a221bafa0c807f394878637c9d6bcf40ad0444 |
| hovercard-subject-tag | issue:215036398 |
| 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/5476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a6544a8bd3a20c9f0ee46dcd3ae32b62af9311888e7bde32a78023045e68510/angular/angular-cli/issues/5476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a6544a8bd3a20c9f0ee46dcd3ae32b62af9311888e7bde32a78023045e68510/angular/angular-cli/issues/5476 |
| og:image:alt | Bug Report or Feature Request (mark with an x) bug report -> please search issues before submitting Versions. @angular/cli: 1.0.0-rc.2 node: 6.9.5 os: darwin x64 @angular/animations: 4.0.0-rc.4 @an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IgorMinar |
| 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