René's URL Explorer Experiment


Title: Production build using buildOptimizer is broke but works without buildOptimizer (Angular v6/v7) · Issue #17255 · angular/angular-cli · GitHub

Open Graph Title: Production build using buildOptimizer is broke but works without buildOptimizer (Angular v6/v7) · Issue #17255 · angular/angular-cli

X Title: Production build using buildOptimizer is broke but works without buildOptimizer (Angular v6/v7) · Issue #17255 · angular/angular-cli

Description: 🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular (this is my assumption) Is this a regression? Hard to tell as build-dependencies changed from Angular v5 to Angular v6 / v7, right? Building the o...

Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular (this is my assumption) Is this a regression? Hard to tell as build-dependencies changed from Angular v5 t...

X Description: 🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular (this is my assumption) Is this a regression? Hard to tell as build-dependencies changed from Angular v5 t...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Production build using buildOptimizer is broke but works without buildOptimizer (Angular v6/v7)","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package `@angular-devkit/build-angular` (this is my assumption)\r\n\r\n\r\n### Is this a regression?\r\n\r\nHard to tell as build-dependencies changed from Angular v5 to Angular v6 / v7, right?\r\nBuilding the original v5 application using `ng build --prod  --build-optimizer=true` spit out a working application at least.\r\n\r\n### Description\r\n\r\nBuilding itself works but when trying to launch the application in the browser, an error is logged to the console:\r\n\r\n```\r\nmain.8cc841c62bc65dc4efeb.js:1 Uncaught TypeError: (intermediate value)(intermediate value) is not a function\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at Object.RCq4.e.exports.12.../apply (main.8cc841c62bc65dc4efeb.js:1)\r\n    at i (main.8cc841c62bc65dc4efeb.js:1)\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at Object.RCq4.e.exports.32../lib/Promise (main.8cc841c62bc65dc4efeb.js:1)\r\n    at i (main.8cc841c62bc65dc4efeb.js:1)\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at Object.RCq4.e.exports.1.../callbacks (main.8cc841c62bc65dc4efeb.js:1)\r\n```\r\n\r\nWhen setting `buildOptimizer` to `false`, everything works out as expected (no error is logged and application launches).\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nCheck out https://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular7 (or https://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular6 for the Angular v6 version).\r\n\r\nRun `yarn` to install dependencies, then run `yarn build` to build the production build with `buildOptimizer` enabled.\r\nServe the resulting artifacts in `dist/build-optimizer-bug` with a regular http-server and open the application in the browser. You can see, that it errors out without displaying anything.\r\n\r\nThen, turn off `buildOptimizer` in `angular.json` and run `yarn build` again. Open the resulting artifacts in the browser again and see, that everything works as expected.\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nmain.8cc841c62bc65dc4efeb.js:1 Uncaught TypeError: (intermediate value)(intermediate value) is not a function\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at Object.RCq4.e.exports.12.../apply (main.8cc841c62bc65dc4efeb.js:1)\r\n    at i (main.8cc841c62bc65dc4efeb.js:1)\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at Object.RCq4.e.exports.32../lib/Promise (main.8cc841c62bc65dc4efeb.js:1)\r\n    at i (main.8cc841c62bc65dc4efeb.js:1)\r\n    at main.8cc841c62bc65dc4efeb.js:1\r\n    at Object.RCq4.e.exports.1.../callbacks (main.8cc841c62bc65dc4efeb.js:1)\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version (v7):**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 7.2.1\r\nNode: 8.11.1\r\nOS: win32 x64\r\nAngular: 7.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\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.12.1\r\n@angular-devkit/build-angular     0.12.1\r\n@angular-devkit/build-optimizer   0.12.1\r\n@angular-devkit/build-webpack     0.12.1\r\n@angular-devkit/core              7.2.1\r\n@angular-devkit/schematics        7.2.1\r\n@angular/cli                      7.2.1\r\n@ngtools/webpack                  7.2.1\r\n@schematics/angular               7.2.1\r\n@schematics/update                0.12.1\r\nrxjs                              6.3.3\r\ntypescript                        3.2.2\r\nwebpack                           4.23.1\r\n\u003c/code>\u003c/pre>\r\n\r\n**Angular Version (v6):**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 6.2.9\r\nNode: 8.11.1\r\nOS: win32 x64\r\nAngular: 6.1.10\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\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.8.9\r\n@angular-devkit/build-angular     0.8.9\r\n@angular-devkit/build-optimizer   0.8.9\r\n@angular-devkit/build-webpack     0.8.9\r\n@angular-devkit/core              0.8.9\r\n@angular-devkit/schematics        0.8.9\r\n@angular/cli                      6.2.9\r\n@ngtools/webpack                  6.2.9\r\n@schematics/angular               0.8.9\r\n@schematics/update                0.8.9\r\nrxjs                              6.2.2\r\ntypescript                        2.9.2\r\nwebpack                           4.16.4\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\nThe module on which the build optimization chokes is https://www.npmjs.com/package/autobahn\r\n","author":{"url":"https://github.com/ClemensSchneider","@type":"Person","name":"ClemensSchneider"},"datePublished":"2019-01-16T11:09:44Z","url":"https://github.com/angular/angular-cli/issues/17255"}

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:4d7bb33e-ce1d-e991-7778-d10b53048177
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id80AE:3C21B:17EFDF3:1E9FCD7:6B012EFE
html-safe-nonce92e80a756bdb70e31a1a264c4e7ebd84db675b9870aa80599ecf8e414df1f44c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEFFOjNDMjFCOjE3RUZERjM6MUU5RkNENzo2QjAxMkVGRSIsInZpc2l0b3JfaWQiOiI3Mjg3OTI0OTA4ODA0MzUzNzkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd34d205ab11031cf2d6d36109c928cfccffa05ffac00ebb05f996d736944861f
hovercard-subject-tagissue:584519684
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/17255/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ecfde5b515e97fdc97f62d5d7abc8251fa59ec8012761a002e8388f5cbf2251f/angular/angular-cli/issues/17255
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ecfde5b515e97fdc97f62d5d7abc8251fa59ec8012761a002e8388f5cbf2251f/angular/angular-cli/issues/17255
og:image:alt🐞 bug report Affected Package The issue is caused by package @angular-devkit/build-angular (this is my assumption) Is this a regression? Hard to tell as build-dependencies changed from Angular v5 t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameClemensSchneider
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/17255#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F17255
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%2F17255
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/17255
Reloadhttps://github.com/angular/angular-cli/issues/17255
Reloadhttps://github.com/angular/angular-cli/issues/17255
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/17255
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17255
Production build using buildOptimizer is broke but works without buildOptimizer (Angular v6/v7)https://github.com/angular/angular-cli/issues/17255#top
https://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
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
Backloghttps://github.com/angular/angular-cli/milestone/12
https://github.com/ClemensSchneider
ClemensSchneiderhttps://github.com/ClemensSchneider
on Jan 16, 2019https://github.com/angular/angular-cli/issues/17255#issue-584519684
https://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular7https://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular7
https://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular6https://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular6
https://www.npmjs.com/package/autobahnhttps://www.npmjs.com/package/autobahn
https://github.com/ClemensSchneider
ClemensSchneiderhttps://github.com/ClemensSchneider
on Jan 16, 2019https://github.com/angular/angular-cli/issues/17255#issuecomment-454741890
crossbario/autobahn-js#354https://github.com/crossbario/autobahn-js/issues/354
alxhubhttps://github.com/alxhub
filipesilvahttps://github.com/filipesilva
on Jan 17, 2019https://github.com/angular/angular-cli/issues/17255#event-2081700404
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jan 22, 2019https://github.com/angular/angular-cli/issues/17255#issuecomment-456492270
Build Optimizerhttps://github.com/angular/angular-cli/tree/master/packages/angular_devkit/build_optimizer
https://github.com/manfredsteyer/ngx-build-plus/https://github.com/manfredsteyer/ngx-build-plus/
https://github.com/ClemensSchneider
ClemensSchneiderhttps://github.com/ClemensSchneider
on Jan 22, 2019https://github.com/angular/angular-cli/issues/17255#issuecomment-456534962
https://github.com/ClemensSchneider
ClemensSchneiderhttps://github.com/ClemensSchneider
on Jan 22, 2019https://github.com/angular/angular-cli/issues/17255#issuecomment-456551869
https://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular7-whenjshttps://github.com/ClemensSchneider/angular-buildoptimizer-bug/tree/angular7-whenjs
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jan 22, 2019https://github.com/angular/angular-cli/issues/17255#issuecomment-456562604
https://github.com/ClemensSchneider
ClemensSchneiderhttps://github.com/ClemensSchneider
on Jan 22, 2019https://github.com/angular/angular-cli/issues/17255#issuecomment-456565491
https://github.com/pkozlowski-opensource
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
on Feb 1, 2019https://github.com/angular/angular-cli/issues/17255#issuecomment-459687320
@filipesilvahttps://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
angular/angularhttps://github.com/angular/angular
on Mar 19, 2020https://github.com/angular/angular-cli/issues/17255#event-3146205940
filipesilvahttps://github.com/filipesilva
comp: devkit/build-optimizerhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22comp%3A%20devkit%2Fbuild-optimizer%22
on Mar 19, 2020https://github.com/angular/angular-cli/issues/17255#event-3146206952
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Mar 19, 2020https://github.com/angular/angular-cli/issues/17255#event-3146207047
dgp1130https://github.com/dgp1130
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
needs: discussionOn the agenda for team meeting to determine next stepshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
triage #1https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
on May 28, 2020https://github.com/angular/angular-cli/issues/17255#event-3384661034
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
Backloghttps://github.com/angular/angular-cli/milestone/12
on May 28, 2020https://github.com/angular/angular-cli/issues/17255#event-3384661068
https://github.com/dgp1130
dgp1130https://github.com/dgp1130
on May 28, 2020https://github.com/angular/angular-cli/issues/17255#issuecomment-635609359
https://github.com/dgp1130
dgp1130https://github.com/dgp1130
on Jun 4, 2020https://github.com/angular/angular-cli/issues/17255#issuecomment-639011200
#15761https://github.com/angular/angular-cli/issues/15761
dgp1130https://github.com/dgp1130
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 4, 2020https://github.com/angular/angular-cli/issues/17255#event-3408061125
dgp1130https://github.com/dgp1130
Introduce different levels for the optimization build option #15761https://github.com/angular/angular-cli/issues/15761
on Jun 4, 2020https://github.com/angular/angular-cli/issues/17255#event-3408065087
dgp1130https://github.com/dgp1130
needs: discussionOn the agenda for team meeting to determine next stepshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
on Jun 4, 2020https://github.com/angular/angular-cli/issues/17255#event-3408082055
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 5, 2020https://github.com/angular/angular-cli/issues/17255#issuecomment-653855804
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 Jul 5, 2020https://github.com/angular/angular-cli/issues/17255#event-3513115744
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/17255
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17255
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
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%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.