Title: ~ tilde operator unable to path to scss beneath app/src · Issue #10077 · angular/angular-cli · GitHub
Open Graph Title: ~ tilde operator unable to path to scss beneath app/src · Issue #10077 · angular/angular-cli
X Title: ~ tilde operator unable to path to scss beneath app/src · Issue #10077 · angular/angular-cli
Description: its documented that ~ is a quick way to reference root in order to operate paths to scss https://scotch.io/tutorials/using-sass-with-the-angular-cli "The tilde (~) will tell Sass to look in the src/ folder and is a quick shortcut to impo...
Open Graph Description: its documented that ~ is a quick way to reference root in order to operate paths to scss https://scotch.io/tutorials/using-sass-with-the-angular-cli "The tilde (~) will tell Sass to look in the src...
X Description: its documented that ~ is a quick way to reference root in order to operate paths to scss https://scotch.io/tutorials/using-sass-with-the-angular-cli "The tilde (~) will tell Sass to look in th...
Opengraph URL: https://github.com/angular/angular-cli/issues/10077
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"~ tilde operator unable to path to scss beneath app/src","articleBody":"its documented that\r\n\r\n~ is a quick way to reference root in order to operate paths to scss\r\n\r\nhttps://scotch.io/tutorials/using-sass-with-the-angular-cli\r\n\r\n\"The tilde (~) will tell Sass to look in the src/ folder and is a quick shortcut to importing Sass files.\"\r\n\r\nI am using latest releases and tilde is hardwired to node_modules dir\r\n\r\nhere is my source inside scss file\r\n```\r\n@font-face {\r\n font-family: \"icon\";\r\n src: url('~sass-chart-styles/fonts/icons/icon.eot?240c3b754b3c47134bf4a382f524781b?#iefix') format(\"embedded-opentype\"),\r\nurl('~sass-chart-styles/fonts/icons/icon.woff2?240c3b754b3c47134bf4a382f524781b') format(\"woff2\"),\r\nurl('~sass-chart-styles/fonts/icons/icon.woff?240c3b754b3c47134bf4a382f524781b') format(\"woff\");\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n```\r\n\r\nhere is output\r\n```\r\nERROR in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--8-3!./src/sass/index.scss\r\n(Emitted value instead of an instance of Error) CssSyntaxError: C:\\apache-tomcat-9.0.0.M17\\webapps\\ROOT\\api\\src\\sass\\fonts\\icons.scss:3:7: Can't resolve '.\r\n./../node_modules/sass-chart-styles/fonts/icons/icon.eot' in 'C:\\apache-tomcat-9.0.0.M17\\webapps\\ROOT\\api\\src\\sass'\r\n```\r\nnode_modules is clearly at the root of the tilde reference\r\n\r\nwhy cant I path into my scss source code ?\r\n\r\n\r\n\r\n```\r\nAngular CLI: 1.7.3\r\nNode: 9.3.0\r\nOS: win32 x64\r\nAngular: 5.2.9\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\n@angular/cdk: 5.2.4\r\n@angular/cli: 1.7.3\r\n@angular/flex-layout: 5.0.0-beta.13\r\n@angular/material: 5.2.4\r\n@angular-devkit/build-optimizer: 0.3.2\r\n@angular-devkit/core: 0.3.2\r\n@angular-devkit/schematics: 0.3.2\r\n@ngtools/json-schema: 1.2.0\r\n@ngtools/webpack: 1.10.2\r\n@schematics/angular: 0.3.2\r\n@schematics/package-update: 0.3.2\r\ntypescript: 2.6.2\r\nwebpack: 3.11.0\r\n```","author":{"url":"https://github.com/MEANSTACKDIGITAL","@type":"Person","name":"MEANSTACKDIGITAL"},"datePublished":"2018-03-27T02:35:08Z","url":"https://github.com/angular/angular-cli/issues/10077"}
| 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:b4579388-2026-1f5d-0029-0423a2e204c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C31E:31D532:1829187:200AD4F:6B020F43 |
| html-safe-nonce | 0ecae9da4b8d621367540acdefe9941c1556a292cb45242d31a0afe880d6bc95 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzFFOjMxRDUzMjoxODI5MTg3OjIwMEFENEY6NkIwMjBGNDMiLCJ2aXNpdG9yX2lkIjoiNTExNzEwNjU2MDcyOTEyNzA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c2229078af7e4baf57d9094cbb0e727ba89b799eee8ae210ef4467495140bc91 |
| hovercard-subject-tag | issue:308800763 |
| 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/10077/issue_layout |
| twitter:image | https://opengraph.githubassets.com/104213d69e66115d134765632ba2ec3457945614036448b363b398644e5cab19/angular/angular-cli/issues/10077 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/104213d69e66115d134765632ba2ec3457945614036448b363b398644e5cab19/angular/angular-cli/issues/10077 |
| og:image:alt | its documented that ~ is a quick way to reference root in order to operate paths to scss https://scotch.io/tutorials/using-sass-with-the-angular-cli "The tilde (~) will tell Sass to look in the src... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MEANSTACKDIGITAL |
| 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