Title: CSS imports do not work for component CSS · Issue #4285 · angular/angular-cli · GitHub
Open Graph Title: CSS imports do not work for component CSS · Issue #4285 · angular/angular-cli
X Title: CSS imports do not work for component CSS · Issue #4285 · angular/angular-cli
Description: In beta.26, the following results in a runtime error: // src/app/app.component.css @import '~bootstrap/scss/bootstrap' http://localhost:4200/~bootstrap/scss/bootstrap Failed to load resource: the server responded with a status of 404 (No...
Open Graph Description: In beta.26, the following results in a runtime error: // src/app/app.component.css @import '~bootstrap/scss/bootstrap' http://localhost:4200/~bootstrap/scss/bootstrap Failed to load resource: the s...
X Description: In beta.26, the following results in a runtime error: // src/app/app.component.css @import '~bootstrap/scss/bootstrap' http://localhost:4200/~bootstrap/scss/bootstrap Failed to load resourc...
Opengraph URL: https://github.com/angular/angular-cli/issues/4285
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSS imports do not work for component CSS","articleBody":"In `beta.26`, the following results in a runtime error:\r\n```\r\n// src/app/app.component.css\r\n@import '~bootstrap/scss/bootstrap'\r\n```\r\n```\r\nhttp://localhost:4200/~bootstrap/scss/bootstrap Failed to load resource: the server responded with a status of 404 (Not Found)\r\npolyfills.bundle.js:6292 Unhandled Promise rejection: Failed to load ~bootstrap/scss/bootstrap ; Zone: \u003croot> ; Task: Promise.then ; Value: Failed to load ~bootstrap/scss/bootstrap \r\n```\r\n\r\nFor global styles, `css-loader` is what resolves imports currently. Component styles had `css-loader` added in an incorrect way, which resulted in broken CSS (fixed by @clydin in https://github.com/angular/angular-cli/pull/3511).\r\n\r\nUsing `'exports-loader?module.exports.toString()'` together with `css-loader` fixes this bug, but I know @clydin is currently working in `css-loader` replacement functionality via PostCSS plugins for imports, which also solves the problem so it's better to wait for that solution.\r\n\r\n","author":{"url":"https://github.com/filipesilva","@type":"Person","name":"filipesilva"},"datePublished":"2017-01-30T12:47:13Z","url":"https://github.com/angular/angular-cli/issues/4285"}
| 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:da6916e2-3232-42a7-cc22-3073790a31f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCFA:2AF0D8:ACD2F6:D88EBD:6B021F45 |
| html-safe-nonce | aa1ce949cbb63fd153c00150f068fc9f7082111908555f99dcf41dd3ba0a513c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0ZBOjJBRjBEODpBQ0QyRjY6RDg4RUJEOjZCMDIxRjQ1IiwidmlzaXRvcl9pZCI6IjM5NzMwNTEzOTg2NTE3ODA5MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 368538794ff89212c349e88ab5f03cfadd9c987f97dc7790f6abb2db5c3f5274 |
| hovercard-subject-tag | issue:204001432 |
| 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/4285/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ad36065167ef728db775cbacd4f76458f6809df9dff086cd4856c4c8dc47ad4/angular/angular-cli/issues/4285 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ad36065167ef728db775cbacd4f76458f6809df9dff086cd4856c4c8dc47ad4/angular/angular-cli/issues/4285 |
| og:image:alt | In beta.26, the following results in a runtime error: // src/app/app.component.css @import '~bootstrap/scss/bootstrap' http://localhost:4200/~bootstrap/scss/bootstrap Failed to load resource: the s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | filipesilva |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width