René's URL Explorer Experiment


Title: Show compile-time error/warning for using `@angular/compiler` with optimized builds · Issue #19016 · angular/angular-cli · GitHub

Open Graph Title: Show compile-time error/warning for using `@angular/compiler` with optimized builds · Issue #19016 · angular/angular-cli

X Title: Show compile-time error/warning for using `@angular/compiler` with optimized builds · Issue #19016 · angular/angular-cli

Description: 🚀 Feature request Command (mark with an x) build Description Currently it is possible to have a configuration which uses AOT compilations but also JIT during runtime and attempts to run build optimizer on the results. This doesn't really...

Open Graph Description: 🚀 Feature request Command (mark with an x) build Description Currently it is possible to have a configuration which uses AOT compilations but also JIT during runtime and attempts to run build optim...

X Description: 🚀 Feature request Command (mark with an x) build Description Currently it is possible to have a configuration which uses AOT compilations but also JIT during runtime and attempts to run build optim...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Show compile-time error/warning for using `@angular/compiler` with optimized builds","articleBody":"# 🚀 Feature request\r\n\r\n\r\n### Command (mark with an `x`)\r\n- [X] build\r\n\r\n### Description\r\nCurrently it is possible to have a configuration which uses AOT compilations but also JIT during runtime and attempts to run build optimizer on the results. This doesn't really work and isn't supported, leading to awkward error messages, which can be confusing to users (see #17663).\r\n\r\n### Describe the solution you'd like\r\nIdeally, the CLI would detect this case and error out if an import for `@angular/compiler` is found in user code with build optimizer enabled. We should display a more precise warning/error about this case to better explain to the users why JIT + build optimizer doesn't work and what they can to do fix it.\r\n\r\n### Describe alternatives you've considered\r\nCurrently this is a runtime error with a poor message.\r\n\r\n```\r\nmain.7000374ef126bad8069c.js:1 ERROR Error: Uncaught (in promise): Error: Angular JIT compilation failed: '@angular/compiler' not loaded!\r\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\r\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\r\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.\r\nError: Angular JIT compilation failed: '@angular/compiler' not loaded!\r\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\r\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\r\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.\r\n    at Ae (main.7000374ef126bad8069c.js:1)\r\n    at Function.get (main.7000374ef126bad8069c.js:1)\r\n    at St (main.7000374ef126bad8069c.js:1)\r\n    at new Af (main.7000374ef126bad8069c.js:1)\r\n    at ud (main.7000374ef126bad8069c.js:1)\r\n    at dd (main.7000374ef126bad8069c.js:1)\r\n    at e.md [as compileModuleAndAllComponentsAsync] (main.7000374ef126bad8069c.js:1)\r\n    at e. (main.7000374ef126bad8069c.js:1)\r\n    at Generator.next ()\r\n    at main.7000374ef126bad8069c.js:1\r\n    at T (polyfills.a8d522dff2c1a5c4b9db.js:1)\r\n    at polyfills.a8d522dff2c1a5c4b9db.js:1\r\n    at a (main.7000374ef126bad8069c.js:1)\r\n    at l.invoke (polyfills.a8d522dff2c1a5c4b9db.js:1)\r\n    at Object.onInvoke (main.7000374ef126bad8069c.js:1)\r\n    at l.invoke (polyfills.a8d522dff2c1a5c4b9db.js:1)\r\n    at i.run (polyfills.a8d522dff2c1a5c4b9db.js:1)\r\n    at polyfills.a8d522dff2c1a5c4b9db.js:1\r\n    at l.invokeTask (polyfills.a8d522dff2c1a5c4b9db.js:1)\r\n    at Object.onInvokeTask (main.7000374ef126bad8069c.js:1)\r\n```","author":{"url":"https://github.com/dgp1130","@type":"Person","name":"dgp1130"},"datePublished":"2020-10-08T19:31:21Z","url":"https://github.com/angular/angular-cli/issues/19016"}

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:bf17dc39-57d3-5b98-f180-73c65cca4223
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0B4:21E3E7:12195B0:17E1838:6B01167F
html-safe-nonce40efaf902910b71a90414132c32e74bf97ee8d2c850a7b15c12cdce9dacd0bc3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEI0OjIxRTNFNzoxMjE5NUIwOjE3RTE4Mzg6NkIwMTE2N0YiLCJ2aXNpdG9yX2lkIjoiNDYxOTU2MDA2OTY2NTcyNDAzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdc4c57f945525f8f65ce587fa31502ff92d113a954b0f3bc59f3b37a9da9c110
hovercard-subject-tagissue:717606633
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/19016/issue_layout
twitter:imagehttps://opengraph.githubassets.com/138356dfa2a6b758958699f5b2ab6f8324c2c2512b9b66eb5d5c37e4b02f3954/angular/angular-cli/issues/19016
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/138356dfa2a6b758958699f5b2ab6f8324c2c2512b9b66eb5d5c37e4b02f3954/angular/angular-cli/issues/19016
og:image:alt🚀 Feature request Command (mark with an x) build Description Currently it is possible to have a configuration which uses AOT compilations but also JIT during runtime and attempts to run build optim...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedgp1130
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/19016#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F19016
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%2F19016
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/19016
Reloadhttps://github.com/angular/angular-cli/issues/19016
Reloadhttps://github.com/angular/angular-cli/issues/19016
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/19016
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/19016
Enhancementhttps://github.com/angular/angular-cli/issues?q=type:"Enhancement"
Show compile-time error/warning for using @angular/compiler with optimized buildshttps://github.com/angular/angular-cli/issues/19016#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
devkit/build-angular:browserhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Abrowser%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
feature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20insufficient%20votes%22
severity1: confusinghttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%22
workaround2: non-obvioushttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
needsTriagehttps://github.com/angular/angular-cli/milestone/11
https://github.com/dgp1130
dgp1130https://github.com/dgp1130
on Oct 8, 2020https://github.com/angular/angular-cli/issues/19016#issue-717606633
#17663https://github.com/angular/angular-cli/issues/17663
dgp1130https://github.com/dgp1130
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
severity1: confusinghttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%22
workaround2: non-obvioushttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
devkit/build-angular:browserhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Abrowser%22
on Oct 8, 2020https://github.com/angular/angular-cli/issues/19016#event-3857046699
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular-cli/milestone/12
on Oct 8, 2020https://github.com/angular/angular-cli/issues/19016#event-3857046811
angular-robothttps://github.com/apps/angular-robot
feature: votes requiredFeature request which is currently still in the voting phasehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20votes%20required%22
on Feb 2, 2022https://github.com/angular/angular-cli/issues/19016#event-5995213259
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Feb 2, 2022https://github.com/angular/angular-cli/issues/19016#issuecomment-1027863038
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular-cli/milestone/12
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Feb 2, 2022https://github.com/angular/angular-cli/issues/19016#event-5995213329
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Feb 21, 2022https://github.com/angular/angular-cli/issues/19016#issuecomment-1046865308
communityhttps://angular.io/resources?category=community
packagehttps://angular.io/guide/creating-libraries
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
angular-robothttps://github.com/apps/angular-robot
feature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20insufficient%20votes%22
feature: votes requiredFeature request which is currently still in the voting phasehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20votes%20required%22
on Feb 21, 2022https://github.com/angular/angular-cli/issues/19016#event-6111507643
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/19016
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/19016
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
devkit/build-angular:browserhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Abrowser%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
feature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20insufficient%20votes%22
severity1: confusinghttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity1%3A%20confusing%22
workaround2: non-obvioushttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
Enhancementhttps://github.com/angular/angular-cli/issues?q=type:"Enhancement"
needsTriageNo due datehttps://github.com/angular/angular-cli/milestone/11
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.