Title: Issues feeding precompiled css into ngc to support aot unit testing · Issue #11318 · angular/angular-cli · GitHub
Open Graph Title: Issues feeding precompiled css into ngc to support aot unit testing · Issue #11318 · angular/angular-cli
X Title: Issues feeding precompiled css into ngc to support aot unit testing · Issue #11318 · angular/angular-cli
Description: Not sure if this should be opened in the angular repo or here, so I apologize if I picked the wrong one! Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Area...
Open Graph Description: Not sure if this should be opened in the angular repo or here, so I apologize if I picked the wrong one! Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues befo...
X Description: Not sure if this should be opened in the angular repo or here, so I apologize if I picked the wrong one! Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues b...
Opengraph URL: https://github.com/angular/angular-cli/issues/11318
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issues feeding precompiled css into ngc to support aot unit testing","articleBody":"Not sure if this should be opened in the `angular` repo or here, so I apologize if I picked the wrong one!\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### Area\r\n```\r\n- [x] devkit\r\n- [ ] schematics\r\n```\r\n\r\n### Versions\r\nnode: `v8.11.2`\r\nnpm: `5.6.0`\r\nmacOS: `v10.13.5`\r\n\r\n\r\n### Repro steps\r\n\r\nrepo: https://github.com/J-Swift/sass-repro\r\n\r\nrun `sh ./test-aot.sh` in `sass-repro`\r\n\r\n### The log given by the failure\r\n```\r\n[11:43:49] Using gulpfile [...]/gulpfile.js\r\n[11:43:49] Starting 'compile-sass'...\r\n[11:43:49] Finished 'compile-sass' after 7.44 ms\r\n: Couldn't resolve resource variables from [...]/src/app/app.component.scss\r\n```\r\n\r\n\r\n### Desired functionality\r\nI'm trying to add `aot` support for unit tests. I've read the relevant conversations on github that have come to the conclusion that official support is not ready to go live:\r\n\r\nhttps://github.com/angular/angular-cli/issues/6650\r\nhttps://github.com/angular/angular-cli/pull/8007\r\nhttps://github.com/angular/angular-cli/issues/8259\r\n\r\nSo, I've adapted an example from @Quramy (the author of the PR to add `aot` unit test support) found here:\r\n\r\nhttps://github.com/Quramy/test-with-aot-summary\r\n\r\nThe problem I'm running into is that (as you know) `ngc` does not support `sass` compilation, and so you need to run this manually before invoking the ts compilation. I've seen your team say in multiple conversations on github that compiling the sass before `ngc` is the intended workflow, but I can't figure out how that is supposed to work to get `ngc` to then use the compiled `css` files instead of the `scss` files specified in a component's `styleUrls`.\r\n\r\nIs the manner which I'm going about the preprocessing in line with how your team thinks I should be manually compiling my sass? Is there something I'm missing that I need to be doing to feed the output of sass compilation into `ngc`? Any help / further guidance on this is much appreciated!\r\n","author":{"url":"https://github.com/J-Swift","@type":"Person","name":"J-Swift"},"datePublished":"2018-06-20T15:58:06Z","url":"https://github.com/angular/angular-cli/issues/11318"}
| 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:4143c8fa-5a17-ff13-76d3-a96d5ca567d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF50:EA09B:2B174A0:3927F4F:6B01C06E |
| html-safe-nonce | 24505f0e2283b33b5b547bb9023e16adeaf9ec756e1194b0f1272fbb1c9b6b19 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjUwOkVBMDlCOjJCMTc0QTA6MzkyN0Y0Rjo2QjAxQzA2RSIsInZpc2l0b3JfaWQiOiIxOTg3MTQwNTU5MTUxNjc3NTUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1e5f8a7117450b777d7a8f02bad8fefc24c0d2fd5e45c00e27376c9ec38b4dd6 |
| hovercard-subject-tag | issue:334144347 |
| 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/11318/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7baee1240dde531f9edee682e37a0483a65d737c7aa49ce6b3c6ead7024545de/angular/angular-cli/issues/11318 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7baee1240dde531f9edee682e37a0483a65d737c7aa49ce6b3c6ead7024545de/angular/angular-cli/issues/11318 |
| og:image:alt | Not sure if this should be opened in the angular repo or here, so I apologize if I picked the wrong one! Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues befo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | J-Swift |
| 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