Title: Style with ~path is not resolved correctly · Issue #9166 · angular/angular-cli · GitHub
Open Graph Title: Style with ~path is not resolved correctly · Issue #9166 · angular/angular-cli
X Title: Style with ~path is not resolved correctly · Issue #9166 · angular/angular-cli
Description: Hi! I noticed that I cannot build my app properly on Windows, the problem seems to lie in ~ import in sass file (bootstrap specifically), the resolved path looks broken because it is doubled, take a look at the log I guess the problem wa...
Open Graph Description: Hi! I noticed that I cannot build my app properly on Windows, the problem seems to lie in ~ import in sass file (bootstrap specifically), the resolved path looks broken because it is doubled, take ...
X Description: Hi! I noticed that I cannot build my app properly on Windows, the problem seems to lie in ~ import in sass file (bootstrap specifically), the resolved path looks broken because it is doubled, take ...
Opengraph URL: https://github.com/angular/angular-cli/issues/9166
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Style with ~path is not resolved correctly","articleBody":"Hi!\r\nI noticed that I cannot build my app properly on Windows, the problem seems to lie in ~ import in sass file (bootstrap specifically), the resolved path looks broken because it is doubled, take a look at the log\r\n\r\nI guess the problem was caused by this code https://github.com/angular/angular-cli/commit/9caa7ca#diff-aa06fda1fc53d1b1e6d1259f3cf4ca2d . \r\nThe resolved path for fonts becomes ``c:\\vhosts\\frontend-client\\src\\c:vhosts�rontend-clientnode_modules�ootstrap-sass\r\nssets�onts�ootstrapglyphicons-halflings-regular.eot``\r\n### Versions\r\n```\r\nAngular CLI: 1.6.3\r\nNode: 8.9.4\r\nOS: win32 x64\r\nAngular: 5.2.0\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/cli: 1.6.2\r\n@angular-devkit/build-optimizer: 0.0.36\r\n@angular-devkit/core: 0.0.22\r\n@angular-devkit/schematics: 0.0.42\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.9.3\r\n@schematics/angular: 0.1.11\r\n@schematics/schematics: 0.0.11\r\ntypescript: 2.6.2\r\nwebpack: 3.10.0\r\n```\r\n\r\n### Repro steps\r\n1. install @angular/cli@1.6.3\r\n2. create new project with scss styles\r\n3. install bootstrap@3.3.7 and bootstrap-sass@3.3.7\r\n4. in src/styles.scss set `$icon-font-path: '~bootstrap-sass/assets/fonts/bootstrap/';` at the top\r\n5. then below add `@import \"~bootstrap-sass/assets/stylesheets/bootstrap\";`\r\n6. try to ng serve or ng build\r\n\r\n\r\n### Observed behavior\r\n```\r\nERROR in ./node_modules/css-loader?{\"sourceMap\":false,\"importLoaders\":1}!./node_modules/postcss-loader/lib?{\"ident\":\"postcss\",\"sourceMap\":false}!./node_modules/sass-loader/lib/loader.js?{\"sourceMap\":false,\"precision\":8,\"includePaths\":[]}!./src/styles.scss\r\nModule not found: Error: Can't resolve './c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot' in 'c:\\vhosts\\frontend-client\\src'\r\nresolve './c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot' in 'c:\\vhosts\\frontend-client\\src'\r\n using description file: c:\\vhosts\\frontend-client\\package.json (relative path: ./src)\r\n Field 'browser' doesn't contain a valid alias configuration\r\n after using description file: c:\\vhosts\\frontend-client\\package.json (relative path: ./src)\r\n using description file: c:\\vhosts\\frontend-client\\package.json (relative path: ./src/c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot)\r\n no extension\r\n Field 'browser' doesn't contain a valid alias configuration\r\n c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot doesn't exist\r\n .ts\r\n Field 'browser' doesn't contain a valid alias configuration\r\n c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot.ts doesn't exist\r\n .js\r\n Field 'browser' doesn't contain a valid alias configuration\r\n c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot.js doesn't exist\r\n as directory\r\n c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot doesn't exist\r\n[c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot]\r\n[c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot.ts]\r\n[c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot.js]\r\n[c:\\vhosts\\frontend-client\\src\\c:vhosts\u000frontend-clientnode_modules\u000bootstrap-sass\r\nssets\u000fonts\u000bootstrapglyphicons-halflings-regular.eot]\r\n @ ./node_modules/css-loader?{\"sourceMap\":false,\"importLoaders\":1}!./node_modules/postcss-loader/lib?{\"ident\":\"postcss\",\"sourceMap\":false}!./node_modules/sass-loader/lib/loader.js?{\"sourceMap\":false,\"precision\":8,\"includePaths\":[]}!./src/styles.scss 7:4344-4479 7:4510-4645\r\n @ ./src/styles.scss\r\n @ multi ./src/styles.scss\r\n```\r\n\r\n\r\n### Desired behavior\r\nSuccessful build\r\n","author":{"url":"https://github.com/zaalbarxx","@type":"Person","name":"zaalbarxx"},"datePublished":"2018-01-11T13:20:13Z","url":"https://github.com/angular/angular-cli/issues/9166"}
| 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:e8a96c3d-bb05-bb45-cdfd-499dd638bd63 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3F8:19E4BB:3CF12B4:4DAC7FD:6B0211CC |
| html-safe-nonce | 7e1eabf7916d5e7612973b2ac88eb0cd09d3513880fcd9402164ecfeda4ea53a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0Y4OjE5RTRCQjozQ0YxMkI0OjREQUM3RkQ6NkIwMjExQ0MiLCJ2aXNpdG9yX2lkIjoiOTIwODUxNDE4MzQwNTExMzgwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b96faebc83d89b781b72538214b49dbe49c91a988207ae53f82a9a26951d28b8 |
| hovercard-subject-tag | issue:287783602 |
| 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/9166/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59d84058957b4c0a8bb7ca9a4b560dddf4f9e48551dc0c0faeae427ed045c508/angular/angular-cli/issues/9166 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59d84058957b4c0a8bb7ca9a4b560dddf4f9e48551dc0c0faeae427ed045c508/angular/angular-cli/issues/9166 |
| og:image:alt | Hi! I noticed that I cannot build my app properly on Windows, the problem seems to lie in ~ import in sass file (bootstrap specifically), the resolved path looks broken because it is doubled, take ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zaalbarxx |
| 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