René's URL Explorer Experiment


Title: compiler-cli/xi18n: Not extracting message from a project using SASS · Issue #12749 · angular/angular · GitHub

Open Graph Title: compiler-cli/xi18n: Not extracting message from a project using SASS · Issue #12749 · angular/angular

X Title: compiler-cli/xi18n: Not extracting message from a project using SASS · Issue #12749 · angular/angular

Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior Complier cli's i18n command won't extract message from a project that uses SAAS. Expected behavior It should extract the me...

Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior Complier cli's i18n command won't extract message from a project that uses SAAS. Ex...

X Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior Complier cli's i18n command won't extract message from a proj...

Opengraph URL: https://github.com/angular/angular/issues/12749

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"compiler-cli/xi18n: Not extracting message from a project using SASS","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request\r\n```\r\n\r\n**Current behavior**\r\nComplier cli's i18n command won't extract message from a project that uses SAAS.\r\n\r\n**Expected behavior**\r\nIt should extract the message regardless components use CSS or SCSS.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nReproduce steps:\r\n\r\n1. Create a new project using angular-cli\r\n```\r\nng new ng-i18n-project-test\r\n```\r\n2. Change angular-cli.json file to use scss style extension instead of css\r\n```\r\n{\r\n  \"project\": {\r\n    \"version\": \"1.0.0-beta.18\",\r\n    \"name\": \"ng-i18n-project-test\"\r\n  },\r\n  \"apps\": [\r\n    {\r\n      \"root\": \"src\",\r\n      \"outDir\": \"dist\",\r\n      \"assets\": [\r\n        \"assets\",\r\n        \"favicon.ico\"\r\n      ],\r\n      \"index\": \"index.html\",\r\n      \"main\": \"main.ts\",\r\n      \"test\": \"test.ts\",\r\n      \"tsconfig\": \"tsconfig.json\",\r\n      \"prefix\": \"app\",\r\n      \"mobile\": false,\r\n      \"styles\": [\r\n        \"styles.scss\"\r\n      ],\r\n      \"scripts\": [],\r\n      \"environments\": {\r\n        \"source\": \"environments/environment.ts\",\r\n        \"dev\": \"environments/environment.ts\",\r\n        \"prod\": \"environments/environment.prod.ts\"\r\n      }\r\n    }\r\n  ],\r\n  \"addons\": [],\r\n  \"packages\": [],\r\n  \"e2e\": {\r\n    \"protractor\": {\r\n      \"config\": \"./protractor.conf.js\"\r\n    }\r\n  },\r\n  \"test\": {\r\n    \"karma\": {\r\n      \"config\": \"./karma.conf.js\"\r\n    }\r\n  },\r\n  \"defaults\": {\r\n    \"styleExt\": \"scss\",\r\n    \"prefixInterfaces\": false,\r\n    \"inline\": {\r\n      \"style\": false,\r\n      \"template\": false\r\n    },\r\n    \"spec\": {\r\n      \"class\": false,\r\n      \"component\": true,\r\n      \"directive\": true,\r\n      \"module\": false,\r\n      \"pipe\": true,\r\n      \"service\": true\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n3. Create file src/app/_variables.scss\r\n```\r\n$color: #FF0000;\r\n```\r\n\r\n4. Change AppComponent style file to app.component.scss and import variables file in it\r\n\r\n```\r\n@import \"variables\";\r\n\r\nh1 {\r\n  color: $color;\r\n}\r\n```\r\n\r\n5. Change AppComponent's styleUrls decorator property\r\n\r\n```\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n  selector: 'app-root',\r\n  templateUrl: './app.component.html',\r\n  styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent {\r\n  title = 'app works!';\r\n}\r\n```\r\n\r\n6. Execute i18n message extractor command\r\n\r\n```\r\n./node_modules/.bin/ng-xi18n -p src/tsconfig.json\r\n```\r\n\r\nIt will throw error:\r\n\r\n```\r\nError: Compilation failed. Resource file not found: /Users/cgcladera/Desktop/ng-i18n-project-test/src/app/variables\r\n    at Object.get (/Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler-cli/src/extract_i18n.js:13:23)\r\n    at DirectiveNormalizer._fetch (/Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13661:45)\r\n    at /Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13761:55\r\n    at Array.map (native)\r\n    at DirectiveNormalizer._loadMissingExternalStylesheets (/Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13761:16)\r\n    at /Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13764:28\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n    at Module.runMain (module.js:592:11)\r\n    at run (bootstrap_node.js:394:7)\r\n    at startup (bootstrap_node.js:149:9)\r\nExtraction failed\r\nCarloss-MacBook-Pro:ng-i18n-project-test cgcladera$ ./node_modules/.bin/ng-xi18n -p src/tsconfig.json\r\nError: Compilation failed. Resource file not found: /Users/cgcladera/Desktop/ng-i18n-project-test/src/app/variables\r\n    at Object.get (/Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler-cli/src/extract_i18n.js:13:23)\r\n    at DirectiveNormalizer._fetch (/Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13661:45)\r\n    at /Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13761:55\r\n    at Array.map (native)\r\n    at DirectiveNormalizer._loadMissingExternalStylesheets (/Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13761:16)\r\n    at /Users/cgcladera/Desktop/ng-i18n-project-test/node_modules/@angular/compiler/bundles/compiler.umd.js:13764:28\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n    at Module.runMain (module.js:592:11)\r\n    at run (bootstrap_node.js:394:7)\r\n    at startup (bootstrap_node.js:149:9)\r\n```\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nUsing SAAS is pretty common. Besides, angular-cli supports it therefore complier-cli should work \r\n\r\n**Please tell us about your environment:**\r\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... -->\r\n* **OS**: \r\nMacOS/Sierra\r\n* **Angular-cli version:** \r\n1.0.0-beta.18\r\n* **Angular version:**\r\nUsing @angular/* 2.1.2\r\n* **Browser:**\r\nNot Applicable \r\n* **Language:**\r\nTypeScript 2.0.3\r\n* **Node (for AoT issues):** `node --version` =   \r\nv6.5.0","author":{"url":"https://github.com/cladera","@type":"Person","name":"cladera"},"datePublished":"2016-11-07T14:33:38Z","url":"https://github.com/angular/angular/issues/12749"}

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:e0a2ea15-6b5c-b69f-3862-7c6ba6aaae43
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE1EC:D4998:F1258C:151CF1E:6B05B507
html-safe-nonce4c2e3f47623a5445f40b9ac15f98ba59895444a98eabb2e09a803ac463d6ef86
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUVDOkQ0OTk4OkYxMjU4QzoxNTFDRjFFOjZCMDVCNTA3IiwidmlzaXRvcl9pZCI6Ijg1MjAyMTg4MzQ5NzA3MTk0OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac64446cd020294412d2157b31e68716aba0c3a56aeb7e755ddd69897615a2b72c
hovercard-subject-tagissue:187726455
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/12749/issue_layout
twitter:imagehttps://opengraph.githubassets.com/230111af7195cfe72a0ed5e8d6642f7a22f2a5b1023101ad2449813f92f41b5a/angular/angular/issues/12749
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/230111af7195cfe72a0ed5e8d6642f7a22f2a5b1023101ad2449813f92f41b5a/angular/angular/issues/12749
og:image:altI'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request Current behavior Complier cli's i18n command won't extract message from a project that uses SAAS. Ex...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecladera
hostnamegithub.com
expected-hostnamegithub.com
None106bb568ff143beb0075344f71b9097568f02130f2e85ac7ca2a4b82efb00b47
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
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
releaseb207ef4132553ef1428fae8ca470a518d651ce07
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/12749#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F12749
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%2Fissues%2F12749
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
Reloadhttps://github.com/angular/angular/issues/12749
Reloadhttps://github.com/angular/angular/issues/12749
Reloadhttps://github.com/angular/angular/issues/12749
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests137 (137)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/12749
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/12749
compiler-cli/xi18n: Not extracting message from a project using SASShttps://github.com/angular/angular/issues/12749#top
https://github.com/cladera
claderahttps://github.com/cladera
on Nov 7, 2016https://github.com/angular/angular/issues/12749#issue-187726455
https://github.com/kemsky
kemskyhttps://github.com/kemsky
on Nov 7, 2016https://github.com/angular/angular/issues/12749#issuecomment-258916898
https://github.com/vicb
vicbhttps://github.com/vicb
on Nov 8, 2016https://github.com/angular/angular/issues/12749#issuecomment-259015879
@hanslhttps://github.com/hansl
vicbhttps://github.com/vicb
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 8, 2016https://github.com/angular/angular/issues/12749#event-850835974
claderahttps://github.com/cladera
on Nov 8, 2016https://github.com/angular/angular/issues/12749#event-851142244
https://github.com/cladera
claderahttps://github.com/cladera
on Nov 8, 2016https://github.com/angular/angular/issues/12749#issuecomment-259077891
@kemskyhttps://github.com/kemsky
https://github.com/cladera
claderahttps://github.com/cladera
on Nov 30, 2016https://github.com/angular/angular/issues/12749#issuecomment-263866252
@vicbhttps://github.com/vicb
https://github.com/vicb
vicbhttps://github.com/vicb
on Nov 30, 2016https://github.com/angular/angular/issues/12749#issuecomment-263949567
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 10, 2019https://github.com/angular/angular/issues/12749#issuecomment-529828074
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 Sep 10, 2019https://github.com/angular/angular/issues/12749#event-2621342471
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/12749
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/12749
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.