René's URL Explorer Experiment


Title: tsconfig paths not respected for styles · Issue #9018 · angular/angular-cli · GitHub

Open Graph Title: tsconfig paths not respected for styles · Issue #9018 · angular/angular-cli

X Title: tsconfig paths not respected for styles · Issue #9018 · angular/angular-cli

Description: So the issue is that the paths setting from the tsconfig.app.json is not respected for style files imports since the cli 1.3.0. My setup is that I have a module inside of my project, aliased in tsconfig.app.json using: ... "paths": { "@c...

Open Graph Description: So the issue is that the paths setting from the tsconfig.app.json is not respected for style files imports since the cli 1.3.0. My setup is that I have a module inside of my project, aliased in tsc...

X Description: So the issue is that the paths setting from the tsconfig.app.json is not respected for style files imports since the cli 1.3.0. My setup is that I have a module inside of my project, aliased in tsc...

Opengraph URL: https://github.com/angular/angular-cli/issues/9018

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsconfig paths not respected for styles","articleBody":"So the issue is that the `paths` setting from the `tsconfig.app.json` is not respected for style files imports since the cli 1.3.0.\r\n\r\nMy setup is that I have a module inside of my project, aliased in `tsconfig.app.json` using:\r\n```\r\n    ...\r\n\r\n    \"paths\": {\r\n      \"@core/*\": [\r\n        \"./core/*\"\r\n      ]\r\n    }\r\n```\r\nThe module consists of various ts and scss files.\r\n\r\nThe files are imported as:\r\n`import { SomeClass } from '@core/module/file';`\r\n\r\nand for styles as:\r\n`@import '~@core/module/styles'; // this fails since 1.3.0`\r\n\r\nSince angular-cli@1.3.0 the styles import of this kind is not working.\r\n\r\nSimple reproducible example:\r\n\r\nhttps://github.com/nnixaa/cli-scss-alias-issue/commit/40c33c8db58ae6f9b6c73670f0a16624428d388a\r\n\r\n### Versions\r\n```\r\ntested and reproducible on cli 1.3.0, 1.6.2, 1.6.3\r\ntested and works fine on cli 1.2.6, 1.2.7\r\n```\r\n\r\n### Repro steps\r\n- clone the project https://github.com/nnixaa/cli-scss-alias-issue\r\n- run `npm start`\r\n\r\n\r\n### Observed behavior\r\n\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 build failed:\r\n@import '~@core/module/styles'; // this fails since 1.3.0\r\n^\r\n      File to import not found or unreadable: ~@core/module/styles.\r\nParent style sheet: stdin\r\n      in /Users/nixa/Development/Sandbox/scss-alias-tsconfig/src/styles.scss (line 2, column 1)\r\nError:\r\n@import '~@core/module/styles'; // this fails since 1.3.0\r\n^\r\n      File to import not found or unreadable: ~@core/module/styles.\r\nParent style sheet: stdin\r\n      in /Users/nixa/Development/Sandbox/scss-alias-tsconfig/src/styles.scss (line 2, column 1)\r\n    at options.error (/Users/nixa/Development/Sandbox/scss-alias-tsconfig/node_modules/node-sass/lib/index.js:291:26)\r\n @ ./src/styles.scss 4:14-191\r\n @ multi ./src/styles.scss\r\n```\r\n\r\n### Desired behavior\r\nShould import styles correctly as per configured `paths` setting.\r\n\r\n\r\n### Possibly related\r\nhttps://github.com/angular/angular-cli/issues/8117 (workaround used there fixes the issue)\r\nhttps://github.com/angular/angular-cli/issues/8036\r\n","author":{"url":"https://github.com/nnixaa","@type":"Person","name":"nnixaa"},"datePublished":"2017-12-28T16:32:09Z","url":"https://github.com/angular/angular-cli/issues/9018"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7c0da601-c0aa-598e-277b-f4d31adca867
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA04A:20AA01:41E533E:5396FE2:6B020F49
html-safe-noncef3cf9b7391760f355f96b15b06121197cfb1af658ea13be5a9877495841033bf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDRBOjIwQUEwMTo0MUU1MzNFOjUzOTZGRTI6NkIwMjBGNDkiLCJ2aXNpdG9yX2lkIjoiNzQ4OTcxOTA1OTUzNDE4ODM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbfde30b88e1b689db0a90527ab7b1239f7d5eeeb49a22576587223cacf869397
hovercard-subject-tagissue:284948167
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/9018/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dc1e49d62cbbe1d2f9c77f1c550584fb9eaf0d98582776ad09fe7309dfc4c3a8/angular/angular-cli/issues/9018
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dc1e49d62cbbe1d2f9c77f1c550584fb9eaf0d98582776ad09fe7309dfc4c3a8/angular/angular-cli/issues/9018
og:image:altSo the issue is that the paths setting from the tsconfig.app.json is not respected for style files imports since the cli 1.3.0. My setup is that I have a module inside of my project, aliased in tsc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamennixaa
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/9018#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F9018
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F9018
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/9018
Reloadhttps://github.com/angular/angular-cli/issues/9018
Reloadhttps://github.com/angular/angular-cli/issues/9018
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/9018
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/9018
tsconfig paths not respected for styleshttps://github.com/angular/angular-cli/issues/9018#top
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
Backloghttps://github.com/angular/angular-cli/milestone/12
https://github.com/nnixaa
nnixaahttps://github.com/nnixaa
on Dec 28, 2017https://github.com/angular/angular-cli/issues/9018#issue-284948167
nnixaa/cli-scss-alias-issue@40c33c8https://github.com/nnixaa/cli-scss-alias-issue/commit/40c33c8db58ae6f9b6c73670f0a16624428d388a
https://github.com/nnixaa/cli-scss-alias-issuehttps://github.com/nnixaa/cli-scss-alias-issue
#8117https://github.com/angular/angular-cli/issues/8117
#8036https://github.com/angular/angular-cli/issues/8036
filipesilvahttps://github.com/filipesilva
hanslhttps://github.com/hansl
on Dec 28, 2017https://github.com/angular/angular-cli/issues/9018#event-1403800568
filipesilvahttps://github.com/filipesilva
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
P5The team acknowledges the request but does not plan to address it, it remains open for discussionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P5%22
on Dec 28, 2017https://github.com/angular/angular-cli/issues/9018#event-1403800616
hanslhttps://github.com/hansl
on Feb 6, 2018https://github.com/angular/angular-cli/issues/9018#event-1460992423
https://github.com/PsyGik
PsyGikhttps://github.com/PsyGik
on Apr 17, 2018https://github.com/angular/angular-cli/issues/9018#issuecomment-382037234
https://github.com/iwantwin
iwantwinhttps://github.com/iwantwin
on May 30, 2018https://github.com/angular/angular-cli/issues/9018#issuecomment-393097773
https://github.com/radonirinamaminiaina
radonirinamaminiainahttps://github.com/radonirinamaminiaina
on Jul 28, 2018https://github.com/angular/angular-cli/issues/9018#issuecomment-408595118
https://github.com/lazysergey
lazysergeyhttps://github.com/lazysergey
on Aug 27, 2018https://github.com/angular/angular-cli/issues/9018#issuecomment-416198199
https://github.com/btkfrank
btkfrankhttps://github.com/btkfrank
on Feb 6, 2019https://github.com/angular/angular-cli/issues/9018#issuecomment-461088009
https://github.com/eestein
eesteinhttps://github.com/eestein
on Oct 1, 2019https://github.com/angular/angular-cli/issues/9018#issuecomment-537201274
filipesilvahttps://github.com/filipesilva
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
P5The team acknowledges the request but does not plan to address it, it remains open for discussionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P5%22
on Oct 8, 2019https://github.com/angular/angular-cli/issues/9018#event-2695941887
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular-cli/milestone/12
on Oct 8, 2019https://github.com/angular/angular-cli/issues/9018#event-2695941982
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on May 26, 2020https://github.com/angular/angular-cli/issues/9018#issuecomment-633870107
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 26, 2020https://github.com/angular/angular-cli/issues/9018#event-3372327482
alan-agius4https://github.com/alan-agius4
triage #1https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on May 27, 2020https://github.com/angular/angular-cli/issues/9018#event-3376849034
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jun 27, 2020https://github.com/angular/angular-cli/issues/9018#issuecomment-650520049
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jun 27, 2020https://github.com/angular/angular-cli/issues/9018#event-3488773957
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/9018
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/9018
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
BacklogNo due datehttps://github.com/angular/angular-cli/milestone/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.