René's URL Explorer Experiment


Title: ng build --prod breaks -> support interface types in injectable constuctors · Issue #5757 · angular/angular-cli · GitHub

Open Graph Title: ng build --prod breaks -> support interface types in injectable constuctors · Issue #5757 · angular/angular-cli

X Title: ng build --prod breaks -> support interface types in injectable constuctors · Issue #5757 · angular/angular-cli

Description: bug report Versions @angular/cli: 1.0.0 node: 6.10.1 os: win32 x64 @angular/animations: 4.0.1 @angular/common: 4.0.1 @angular/compiler: 4.0.1 @angular/core: 4.0.1 @angular/forms: 4.0.1 @angular/http: 4.0.1 @angular/material: 2.0.0-beta.1...

Open Graph Description: bug report Versions @angular/cli: 1.0.0 node: 6.10.1 os: win32 x64 @angular/animations: 4.0.1 @angular/common: 4.0.1 @angular/compiler: 4.0.1 @angular/core: 4.0.1 @angular/forms: 4.0.1 @angular/htt...

X Description: bug report Versions @angular/cli: 1.0.0 node: 6.10.1 os: win32 x64 @angular/animations: 4.0.1 @angular/common: 4.0.1 @angular/compiler: 4.0.1 @angular/core: 4.0.1 @angular/forms: 4.0.1 @angular/htt...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng build --prod breaks -> support interface types in injectable constuctors","articleBody":"### bug report\r\n\r\n### Versions\r\n@angular/cli: 1.0.0\r\nnode: 6.10.1\r\nos: win32 x64\r\n@angular/animations: 4.0.1\r\n@angular/common: 4.0.1\r\n@angular/compiler: 4.0.1\r\n@angular/core: 4.0.1\r\n@angular/forms: 4.0.1\r\n@angular/http: 4.0.1\r\n@angular/material: 2.0.0-beta.1\r\n@angular/platform-browser: 4.0.1\r\n@angular/platform-browser-dynamic: 4.0.1\r\n@angular/router: 4.0.1\r\n@angular/cli: 1.0.0\r\n\r\n### Repro steps.\r\n\r\nit's the same bug as in the following link but now happens only on prod mode:\r\nIssue: https://github.com/angular/angular/issues/12631\r\nFix: https://github.com/angular/angular/pull/14894\r\n\r\nI have a constructor that uses @Inject to get a dependency, and references an interface as type, constructor( @Inject(Document) private document: Document). \r\n\r\n### What is the current behavior? (You can also link to an open issue here)\r\nWhen I run ng build --prod, I get this error:\r\n\r\n> \r\nERROR in Error encountered resolving symbol values statically. Could not resolve type Document (position 26:88 in the original .ts file), resolving symbol OptimizationTable in E:/dev/WorkPlace/web/js/src/myApp-fa/src/app/site/modules/+optimization/table/optimizationTable.component.ts\r\n\r\nERROR in ./src/main.ts\r\nModule not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'E:\\dev\\WorkPlace\\web\\js\\src\\myApp\\src'\r\n @ ./src/main.ts 5:0-74\r\n @ multi ./src/main.ts\r\n\r\nwhen changed to:\r\n`constructor( @Inject(Document) private document: any)\r\n`it works\r\n\r\n### What is the new behavior?\r\n\r\n would expect to be able to reference an interface in a constructor in conjunction with @Inject.\r\n\r\n","author":{"url":"https://github.com/MadUser","@type":"Person","name":"MadUser"},"datePublished":"2017-03-30T13:40:40Z","url":"https://github.com/angular/angular-cli/issues/5757"}

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:74acf2e7-bd61-1675-881d-eed265783446
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBA6:172B92:7FCA3C:ACC78B:6B00E044
html-safe-noncec7c5a63a1d5375ead93b953933a9d14fe970c51633fb144f6aff71f0a124d324
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkE2OjE3MkI5Mjo3RkNBM0M6QUNDNzhCOjZCMDBFMDQ0IiwidmlzaXRvcl9pZCI6IjExMjEwMzI5NTM3NTQzMzc5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4b3f3a884dddd703d4a0236a30fa258d72b54e298c269958d806db997fe6f7ae
hovercard-subject-tagissue:218200718
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/5757/issue_layout
twitter:imagehttps://opengraph.githubassets.com/260b5f43182904e4f209eef95d8c40922138530bbd7fb7d771c8bc73ab3d7764/angular/angular-cli/issues/5757
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/260b5f43182904e4f209eef95d8c40922138530bbd7fb7d771c8bc73ab3d7764/angular/angular-cli/issues/5757
og:image:altbug report Versions @angular/cli: 1.0.0 node: 6.10.1 os: win32 x64 @angular/animations: 4.0.1 @angular/common: 4.0.1 @angular/compiler: 4.0.1 @angular/core: 4.0.1 @angular/forms: 4.0.1 @angular/htt...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMadUser
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/5757#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F5757
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%2F5757
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/5757
Reloadhttps://github.com/angular/angular-cli/issues/5757
Reloadhttps://github.com/angular/angular-cli/issues/5757
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/5757
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/5757
ng build --prod breaks -> support interface types in injectable constuctorshttps://github.com/angular/angular-cli/issues/5757#top
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
https://github.com/MadUser
MadUserhttps://github.com/MadUser
on Mar 30, 2017https://github.com/angular/angular-cli/issues/5757#issue-218200718
angular/angular#12631https://github.com/angular/angular/issues/12631
angular/angular#14894https://github.com/angular/angular/pull/14894
@Injecthttps://github.com/Inject
@Injecthttps://github.com/Inject
@Injecthttps://github.com/Inject
https://github.com/deebloo
deebloohttps://github.com/deebloo
on Mar 30, 2017https://github.com/angular/angular-cli/issues/5757#issuecomment-290416118
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Mar 30, 2017https://github.com/angular/angular-cli/issues/5757#issuecomment-290543685
angular/angular#15640https://github.com/angular/angular/issues/15640
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on May 3, 2017https://github.com/angular/angular-cli/issues/5757#issuecomment-298898016
@deebloohttps://github.com/deebloo
@DzmitryShylovichhttps://github.com/DzmitryShylovich
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 3, 2017https://github.com/angular/angular-cli/issues/5757#event-1067140886
filipesilvahttps://github.com/filipesilva
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
on May 3, 2017https://github.com/angular/angular-cli/issues/5757#event-1067143911
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 7, 2019https://github.com/angular/angular-cli/issues/5757#issuecomment-529060646
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 7, 2019https://github.com/angular/angular-cli/issues/5757#event-2615921538
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/5757
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/5757
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
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.