Title: 'includePaths' does not work with LESS · Issue #7083 · angular/angular-cli · GitHub
Open Graph Title: 'includePaths' does not work with LESS · Issue #7083 · angular/angular-cli
X Title: 'includePaths' does not work with LESS · Issue #7083 · 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.2.2 node: 6.11.0 os: linux x64 Repro steps. Create project with less styles ng new ...
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.2.2 node: 6.11.0 os: linux x64 Repro steps....
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.2.2 node: 6.11.0 os: linux x64 Repro ste...
Opengraph URL: https://github.com/angular/angular-cli/issues/7083
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'includePaths' does not work with LESS","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@angular/cli: 1.2.2\r\nnode: 6.11.0\r\nos: linux x64\r\n\r\n\r\n### Repro steps.\r\n1. Create project with less styles `ng new [NAME] --style=less`\r\n2. Create `styles/variables.less` directory in `src` folder\r\n3. Update styles config in `.angular-cli.json`\r\n```json\r\n\"styles\": [\r\n \"styles/variables.less\"\r\n],\r\n\"stylePreprocessorOptions\": {\r\n \"includePaths\": [\r\n \"styles\"\r\n ]\r\n},\r\n```\r\n4. Import variables in component styles\r\n```less\r\n@import 'variables';\r\n\r\ndiv {\r\n color: @text-color;\r\n}\r\n```\r\n\r\n### The log given by the failure.\r\n```\r\nERROR in ./src/app/app.component.less\r\nModule build failed:\r\n\r\n@import 'variables';\r\n^\r\nCan't resolve './variables.less' in '/home/user/Desktop/ng-less/src/app'\r\n in /home/user/Desktop/ng-less/src/app/app.component.less (line 1, column 0)\r\n @ ./src/app/app.component.ts 18:17-48\r\n @ ./src/app/app.module.ts\r\n @ ./src/main.ts\r\n @ multi webpack-dev-server/client?http://localhost:4242 ./src/main.ts\r\n```\r\n\r\n\r\n### Desired functionality.\r\n`includePaths` should work like less `paths` option\r\n\r\n\r\n### Mention any other details that might be useful.\r\nThe steps were reproduced with `scss` styles and it worked correctly\r\n","author":{"url":"https://github.com/taras-d","@type":"Person","name":"taras-d"},"datePublished":"2017-07-21T13:51:51Z","url":"https://github.com/angular/angular-cli/issues/7083"}
| 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:f989c7d8-11f1-563b-fcaf-21c5d722aca0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 876E:1D86C4:3CCAF06:4D3B4B9:6B02096D |
| html-safe-nonce | b5034536ad4b755681ff6b786fa158f123028dac339cc534fa99c7e3d6ecabf2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzZFOjFEODZDNDozQ0NBRjA2OjREM0I0Qjk6NkIwMjA5NkQiLCJ2aXNpdG9yX2lkIjoiMTUyNDg0MDU4MjAxNDU5MDUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 14c9733f086d3da3819528e91be747c846656d90081b64c3084d2c3bd75abfc3 |
| hovercard-subject-tag | issue:244675266 |
| 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/7083/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3dde06220951e15fc5511d4a97405169055f7919d06b12b8d4edd91a3b7f44ae/angular/angular-cli/issues/7083 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3dde06220951e15fc5511d4a97405169055f7919d06b12b8d4edd91a3b7f44ae/angular/angular-cli/issues/7083 |
| 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.2.2 node: 6.11.0 os: linux x64 Repro steps.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | taras-d |
| 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