Title: ng build --prod breaks with an error in css · Issue #16875 · angular/angular-cli · GitHub
Open Graph Title: ng build --prod breaks with an error in css · Issue #16875 · angular/angular-cli
X Title: ng build --prod breaks with an error in css · Issue #16875 · angular/angular-cli
Description: 🐞 bug report Description When I run ng build --prod I get an issue: 🔥 Exception or Error 92% chunk asset optimization optimize-css-webpack-pluginAn unhandled exception occurred: Lexical error on line 1: Unrecognized text. Erroneous area:...
Open Graph Description: 🐞 bug report Description When I run ng build --prod I get an issue: 🔥 Exception or Error 92% chunk asset optimization optimize-css-webpack-pluginAn unhandled exception occurred: Lexical error on li...
X Description: 🐞 bug report Description When I run ng build --prod I get an issue: 🔥 Exception or Error 92% chunk asset optimization optimize-css-webpack-pluginAn unhandled exception occurred: Lexical error on li...
Opengraph URL: https://github.com/angular/angular-cli/issues/16875
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng build --prod breaks with an error in css","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅--\u003e\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Description\r\n\r\n**When I run ng build --prod I get an issue:**\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre\u003e\u003ccode\u003e\r\n\u003c!-- If the issue is accompanied by an exception or an error, please share it below: --\u003e\r\n92% chunk asset optimization optimize-css-webpack-pluginAn unhandled exception occurred: Lexical error on line 1: Unrecognized text.\r\n\r\n Erroneous area:\r\n1: 100% - $icon-size-xl - 1\r\n^.........^\r\nSee \"/private/var/folders/rr/l3g7t6150l34y62qrtttjyfc0000gn/T/ng-5EAXR6/angular-errors.log\" for further details.\r\n\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular CLI: 9.0.1\r\n\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n**Anything else relevant?**\r\n**My package.json**\r\n\"dependencies\": {\r\n \"@angular-devkit/schematics\": \"^9.0.1\",\r\n \"@angular/animations\": \"~9.0.0\",\r\n \"@angular/cdk\": \"^9.0.0\",\r\n \"@angular/common\": \"~9.0.0\",\r\n \"@angular/compiler\": \"~9.0.0\",\r\n \"@angular/core\": \"~9.0.0\",\r\n \"@angular/forms\": \"~9.0.0\",\r\n \"@angular/platform-browser\": \"~9.0.0\",\r\n \"@angular/platform-browser-dynamic\": \"~9.0.0\",\r\n \"@angular/router\": \"~9.0.0\",\r\n \"angularx-qrcode\": \"^2.1.0\",\r\n \"jwt-decode\": \"^2.2.0\",\r\n \"moment\": \"^2.24.0\",\r\n \"ngx-bootstrap\": \"^5.1.2\",\r\n \"ngx-spinner\": \"^8.0.3\",\r\n \"ngx-toastr\": \"^11.0.0\",\r\n \"primeicons\": \"^2.0.0\",\r\n \"primeng\": \"^9.0.0-rc.4\",\r\n \"rxjs\": \"~6.5.4\",\r\n \"tslib\": \"^1.10.0\",\r\n \"zone.js\": \"~0.10.2\"\r\n },\r\n\r\n**My log file**\r\n[error] JisonLexerError: Lexical error on line 1: Unrecognized text.\r\n\r\n Erroneous area:\r\n1: 100% - $icon-size-xl - 1\r\n^.........^\r\n at /Users/akhilgrandhi/Documents/apocfrontend/styles.73840fd418084795d475.css:17:225980\r\n at Object.parseError (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/parser.js:1164:15)\r\n at Object.lexer_parseError [as parseError] (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/parser.js:2297:44)\r\n at Object.lexer_next [as next] (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/parser.js:3292:22)\r\n at Object.lexer_fastLex [as fastLex] (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/parser.js:3367:18)\r\n at fastLex (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/parser.js:1567:27)\r\n at Parser.parse (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/parser.js:1641:30)\r\n at /Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/lib/transform.js:30:30\r\n at walk (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/node_modules/postcss-value-parser/lib/walk.js:19:7)\r\n at ValueParser.walk (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/node_modules/postcss-value-parser/lib/index.js:18:3)\r\n at transformValue (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/lib/transform.js:24:50)\r\n at _default (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/lib/transform.js:59:100)\r\n at /Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss-calc/dist/index.js:25:51\r\n at /Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss/lib/container.js:135:18\r\n at Rule.each (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss/lib/container.js:101:16)\r\n at Rule.walk (/Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss/lib/container.js:131:17)\r\n at /Users/akhilgrandhi/Documents/apocfrontend/node_modules/postcss/lib/container.js:148:24\r\n","author":{"url":"https://github.com/gvsakhil","@type":"Person","name":"gvsakhil"},"datePublished":"2020-02-07T13:44:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/16875/angular-cli/issues/16875"}
| 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:d89c0349-b590-30cb-64da-0890be4f587a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E83A:354E7:110D9A:16ABDF:6A6168CD |
| html-safe-nonce | 6c58ea4a0c9094ca16ee1e6b50c3cd84b1b26757c9c426e2acaf1b155c5bb695 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODNBOjM1NEU3OjExMEQ5QToxNkFCREY6NkE2MTY4Q0QiLCJ2aXNpdG9yX2lkIjoiNjU2NjMzNjM5OTgwOTgwMDM5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9c2af5764113eaeb52540e53194ac7ccd2d58b18105a1414d3455208a5cad6d4 |
| hovercard-subject-tag | issue:561673017 |
| 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/16875/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1a500dd1671f917c0e24ed92f055d505ef267981f6576f42129b56706fb3103/angular/angular-cli/issues/16875 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1a500dd1671f917c0e24ed92f055d505ef267981f6576f42129b56706fb3103/angular/angular-cli/issues/16875 |
| og:image:alt | 🐞 bug report Description When I run ng build --prod I get an issue: 🔥 Exception or Error 92% chunk asset optimization optimize-css-webpack-pluginAn unhandled exception occurred: Lexical error on li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvsakhil |
| hostname | github.com |
| expected-hostname | github.com |
| None | a69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2 |
| 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 | 484cf265a1f970d5c7a5e7c37cb677d8010aa12f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width