René's URL Explorer Experiment


Title: Angular Schematics - Apply thousands of changes on tree cause error "Maximum call stack size exceeded" · Issue #17851 · angular/angular-cli · GitHub

Open Graph Title: Angular Schematics - Apply thousands of changes on tree cause error "Maximum call stack size exceeded" · Issue #17851 · angular/angular-cli

X Title: Angular Schematics - Apply thousands of changes on tree cause error "Maximum call stack size exceeded" · Issue #17851 · angular/angular-cli

Description: 🐞 Bug report Description I use Angular Schematics to migrate from AngularJs to Angular. The application is a large one with thousands of page. I try to create a component for each page based on a template. When I try to create the compon...

Open Graph Description: 🐞 Bug report Description I use Angular Schematics to migrate from AngularJs to Angular. The application is a large one with thousands of page. I try to create a component for each page based on a t...

X Description: 🐞 Bug report Description I use Angular Schematics to migrate from AngularJs to Angular. The application is a large one with thousands of page. I try to create a component for each page based on a t...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular Schematics - Apply thousands of changes on tree cause error \"Maximum call stack size exceeded\"","articleBody":"# 🐞 Bug report\r\n\r\n### Description\r\n\r\nI use Angular Schematics to migrate from AngularJs to Angular. The application is a large one with thousands of page. I try to create a component for each page based on a template. When I try to create the component on a smaller project like 200 pages it's working but when I fall on a large one with more than 1000 pages (1000 schematics rules)\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\u003cpre\u003e\u003ccode\u003e\r\nexport function createPageComponents(options: any): Rule {\r\n    return (tree: Tree, context: SchematicContext) =\u003e {\r\n        const logger = context.logger;\r\n        const directory = tree.getDir('my_path/pages');\r\n\r\n        const rules: Rule[] = [];\r\n        directory.visit((filePath) =\u003e {\r\n            if (!filePath.endsWith('config.ts')) {\r\n                return;\r\n            }\r\n\r\n            const dirPath = dirname(filePath);\r\n            const parsedPath = parseName(dirPath, basename(filePath).split('.')[0]);\r\n            options = {\r\n                path: parsedPath.path,\r\n                name: parsedPath.name\r\n            };\r\n\r\n            const templateSource = apply(\r\n                url('./files'),\r\n                [\r\n                    applyTemplates({\r\n                        ...strings,\r\n                        ...options\r\n                    }),\r\n                    move(parsedPath.path)\r\n                ]\r\n            );\r\n\r\n            const rule = mergeWith(templateSource);\r\n\r\n            rules.push(rule);\r\n        });\r\n\r\n        return chain(rules);\r\n    };\r\n}\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre\u003e\u003ccode\u003e\r\n    RangeError: Maximum call stack size exceeded\r\n        at Console.warn (\u003canonymous\u003e)\r\n        at Observable._trySubscribe (my_path\\node_modules\\rxjs\\internal\\Observable.js:55:25)\r\n        at Observable.subscribe (my_path\\node_modules\\rxjs\\internal\\Observable.js:30:22)\r\n        at MergeMapOperator.call (my_path\\node_modules\\rxjs\\internal\\operators\\mergeMap.js:39:23)\r\n        at Observable.subscribe (my_path\\node_modules\\rxjs\\internal\\Observable.js:25:31)\r\n        at MapOperator.call (my_path\\node_modules\\rxjs\\internal\\operators\\map.js:32:23)\r\n        at Observable.subscribe (my_path\\node_modules\\rxjs\\internal\\Observable.js:25:31)\r\n        at MapToOperator.call (my_path\\node_modules\\rxjs\\internal\\operators\\mapTo.js:26:23)\r\n        at Observable.subscribe (my_path\\node_modules\\rxjs\\internal\\Observable.js:25:31)\r\n        at DefaultIfEmptyOperator.call (my_path\\node_modules\\rxjs\\internal\\operators\\defaultIfEmpty.js:27:23)\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular CLI: 9.1.4\r\nNode: 10.19.0\r\nOS: win32 x64\r\n\r\nAngular: 9.1.4\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: Yes\r\n\r\nPackage                            Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect          0.901.4\r\n@angular-devkit/build-angular      0.901.4\r\n@angular-devkit/build-ng-packagr   0.901.4\r\n@angular-devkit/build-optimizer    0.901.4\r\n@angular-devkit/build-webpack      0.901.4\r\n@angular-devkit/core               9.1.4\r\n@angular-devkit/schematics         9.1.7\r\n@angular-devkit/schematics-cli     0.901.7\r\n@angular/upgrade                   9.1.9\r\n@ngtools/webpack                   9.1.4\r\n@schematics/angular                9.1.4 (cli-only)\r\n@schematics/schematics             0.901.7\r\n@schematics/update                 0.901.4\r\nng-packagr                         9.1.3\r\nrxjs                               6.5.5\r\ntypescript                         3.8.3\r\nwebpack                            4.42.0\r\n\u003c/code\u003e\u003c/pre\u003e\r\n","author":{"url":"https://github.com/fatalcaron","@type":"Person","name":"fatalcaron"},"datePublished":"2020-06-03T20:01:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17851/angular-cli/issues/17851"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3781be1a-96f1-c92a-0863-fee78a1e5325
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA148:2CE08F:2C48C56:3D29A4C:6964F55F
html-safe-noncef420e7cf35078db0e4ae2b88a15dffab17888409cd5bb45dd3ebc9edea9ac870
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTQ4OjJDRTA4RjoyQzQ4QzU2OjNEMjlBNEM6Njk2NEY1NUYiLCJ2aXNpdG9yX2lkIjoiMTE2ODAyNTYxNzg2NDkxNDI3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0935cf3a5fccc5194f912264bcb7c8687afae6a145617ae8dc0bfe82355d4b44
hovercard-subject-tagissue:630286896
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/17851/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ab734d09292aba74895545c14cae0a05e5c2585178d6178ad2060e7d02f555bc/angular/angular-cli/issues/17851
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ab734d09292aba74895545c14cae0a05e5c2585178d6178ad2060e7d02f555bc/angular/angular-cli/issues/17851
og:image:alt🐞 Bug report Description I use Angular Schematics to migrate from AngularJs to Angular. The application is a large one with thousands of page. I try to create a component for each page based on a t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefatalcaron
hostnamegithub.com
expected-hostnamegithub.com
None003e962bf5ca78f3f8f71db2461c6a7f9cfcbe99b480d6aeddaef78d33e9161a
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
release21cbf6733480c5c09366f15b8dc8b6953472172a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/17851#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F17851
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F17851
Sign up https://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/17851
Reloadhttps://github.com/angular/angular-cli/issues/17851
Reloadhttps://github.com/angular/angular-cli/issues/17851
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 264 https://github.com/angular/angular-cli/issues
Pull requests 22 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/angular/angular-cli/security
Please reload this pagehttps://github.com/angular/angular-cli/issues/17851
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17851
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/17851
Angular Schematics - Apply thousands of changes on tree cause error "Maximum call stack size exceeded"https://github.com/angular/angular-cli/issues/17851#top
area: @angular-devkit/schematicshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fschematics%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
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular-cli/milestone/12
https://github.com/fatalcaron
https://github.com/fatalcaron
fatalcaronhttps://github.com/fatalcaron
on Jun 3, 2020https://github.com/angular/angular-cli/issues/17851#issue-630286896
area: @angular-devkit/schematicshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fschematics%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
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%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.