René's URL Explorer Experiment


Title: ng build -aot error 'entry.split is not a function' on lazy loaded modules · Issue #3204 · angular/angular-cli · GitHub

Open Graph Title: ng build -aot error 'entry.split is not a function' on lazy loaded modules · Issue #3204 · angular/angular-cli

X Title: ng build -aot error 'entry.split is not a function' on lazy loaded modules · Issue #3204 · angular/angular-cli

Description: OS? Windows 10 Versions. 1.0.0-beta.20-4 The log given by the failure. C:\Projects\Cli>ng build -prod -aot 10% building modules 2/2 modules 0 active entry.split is not a function TypeError: entry.split is not a function at Function.Modul...

Open Graph Description: OS? Windows 10 Versions. 1.0.0-beta.20-4 The log given by the failure. C:\Projects\Cli>ng build -prod -aot 10% building modules 2/2 modules 0 active entry.split is not a function TypeError: entry.s...

X Description: OS? Windows 10 Versions. 1.0.0-beta.20-4 The log given by the failure. C:\Projects\Cli>ng build -prod -aot 10% building modules 2/2 modules 0 active entry.split is not a function TypeError: entr...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng build -aot error 'entry.split is not a function' on lazy loaded modules","articleBody":"### OS?\r\n> Windows 10\r\n\r\n### Versions.\r\n1.0.0-beta.20-4\r\n\r\n### The log given by the failure.\r\nC:\\Projects\\Cli>ng build -prod -aot\r\n 10% building modules 2/2 modules 0 active entry.split is not a function\r\nTypeError: entry.split is not a function\r\n    at Function.ModuleRoute.fromString (C:\\Projects\\Cli\\node_modules\\@ngtools\\webpack\\src\\plugin.js:24:27)\r\n    at C:\\Projects\\Cli\\node_modules\\@ngtools\\webpack\\src\\plugin.js:244:34\r\n    at Array.map (native)\r\n    at AotPlugin._processNgModule (C:\\Projects\\Cli\\node_modules\\@ngtools\\webpack\\src\\plugin.js:243:14)\r\n    at C:\\Projects\\Cli\\node_modules\\@ngtools\\webpack\\src\\plugin.js:217:39\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n\r\n### Mention any other details that might be useful.\r\nI understand that this feature is still under development but FYI...\r\nLine 24 of node_modules/@ngtools/webpack\\src\\plugin.js\r\n`var split = entry.split('#');`\r\nLooks like it expects SystemJs module path like `my.module#MyModule`\r\nBut this format doesn't work with webpack. In order to lazy load modules I use es6-promise-loader and it looks like this:\r\n```\r\nexport function loadMyModule() {\r\n  return require('es6-promise!./my.module')('MyModule');\r\n}\r\nexport const appRoutes: Routes = [\r\n    {path: 'my', loadChildren: loadMyModule},\r\n]\r\n\r\n```\r\nSo, the `entry` parameter of `ModuleRoute.fromString` (line 23) is not a string but rather something like this:\r\n```\r\nactiveStaticSymbol {\r\n  filePath: 'C:/Projects/Cli/src/app/app.routing.ts',\r\n  name: 'loadMyModule',\r\n  members: undefined }\r\n```","author":{"url":"https://github.com/ctrl-brk","@type":"Person","name":"ctrl-brk"},"datePublished":"2016-11-19T07:09:44Z","url":"https://github.com/angular/angular-cli/issues/3204"}

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:f6a5aa0b-48a0-a808-1677-6d94721489ef
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB8CE:ADA9D:17F76B3:1ECD70E:6B013049
html-safe-noncef01801f00a10f05c3006011f423e3db4daf01a5f557a08f22a408ddedb196b71
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOENFOkFEQTlEOjE3Rjc2QjM6MUVDRDcwRTo2QjAxMzA0OSIsInZpc2l0b3JfaWQiOiIyOTMzMjIwNzI1MTYwNDg5MDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf4373382dd99b42d4c813d3ced8b128e01f8bf5c70f715ec582133ddb39ec3bb
hovercard-subject-tagissue:190481632
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/3204/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e45eb293d14c3ce94e4978ea65c037015e76f81e1fb8fbbe0a555c9e945d2a06/angular/angular-cli/issues/3204
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e45eb293d14c3ce94e4978ea65c037015e76f81e1fb8fbbe0a555c9e945d2a06/angular/angular-cli/issues/3204
og:image:altOS? Windows 10 Versions. 1.0.0-beta.20-4 The log given by the failure. C:\Projects\Cli>ng build -prod -aot 10% building modules 2/2 modules 0 active entry.split is not a function TypeError: entry.s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamectrl-brk
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/3204#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F3204
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%2F3204
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/3204
Reloadhttps://github.com/angular/angular-cli/issues/3204
Reloadhttps://github.com/angular/angular-cli/issues/3204
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/3204
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/3204
ng build -aot error 'entry.split is not a function' on lazy loaded moduleshttps://github.com/angular/angular-cli/issues/3204#top
https://github.com/ctrl-brk
ctrl-brkhttps://github.com/ctrl-brk
on Nov 19, 2016https://github.com/angular/angular-cli/issues/3204#issue-190481632
Nexthttps://github.com/angular/angular-cli/issues/3204?timeline_page=1
https://github.com/clydin
clydinhttps://github.com/clydin
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261748692
https://github.com/brandonroberts
brandonrobertshttps://github.com/brandonroberts
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261757588
https://github.com/ctrl-brk
ctrl-brkhttps://github.com/ctrl-brk
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261758405
@brandonrobertshttps://github.com/brandonroberts
https://github.com/brandonroberts
brandonrobertshttps://github.com/brandonroberts
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261758485
@ctrl-brkhttps://github.com/ctrl-brk
https://github.com/ctrl-brk
ctrl-brkhttps://github.com/ctrl-brk
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261759110
@brandonrobertshttps://github.com/brandonroberts
http://stackoverflow.com/a/39496473/3211221http://stackoverflow.com/a/39496473/3211221
https://github.com/brandonroberts
brandonrobertshttps://github.com/brandonroberts
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261759280
27a034dhttps://github.com/angular/angular-cli/commit/27a034d7e8f140fd0155d741aedbee45c774a3cc
https://github.com/ctrl-brk
ctrl-brkhttps://github.com/ctrl-brk
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261760526
https://github.com/ctrl-brk
ctrl-brkhttps://github.com/ctrl-brk
on Nov 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-261766226
https://github.com/achimha
achimhahttps://github.com/achimha
on Dec 20, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-268176201
https://github.com/jwuliger
jwuligerhttps://github.com/jwuliger
on Dec 24, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-269065919
@achimhahttps://github.com/achimha
https://github.com/Rebolon
Rebolonhttps://github.com/Rebolon
on Dec 26, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-269226638
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Dec 29, 2016https://github.com/angular/angular-cli/issues/3204#issuecomment-269670990
@Meligyhttps://github.com/Meligy
angular/angular#13676https://github.com/angular/angular/pull/13676
https://github.com/angular/angular-cli/blob/master/tests/e2e/assets/webpack/test-app/app/app.module.ts#L21https://github.com/angular/angular-cli/blob/master/tests/e2e/assets/webpack/test-app/app/app.module.ts#L21
Meligyhttps://github.com/Meligy
on Dec 31, 2016https://github.com/angular/angular-cli/issues/3204#event-908484503
fix(compiler-cli): avoid handling functions in loadChildren as lazy l…https://github.com/Meligy/angular/commit/93af4248e7bb84750fd6abbb44f0dccf021b4604
https://docs.github.com/articles/closing-issues-via-commit-messages
93af424https://github.com/Meligy/angular/commit/93af4248e7bb84750fd6abbb44f0dccf021b4604
https://github.com/maxime1992
maxime1992https://github.com/maxime1992
on Jan 6, 2017https://github.com/angular/angular-cli/issues/3204#issuecomment-270910618
@Rebolonhttps://github.com/Rebolon
@filipesilvahttps://github.com/filipesilva
https://github.com/clydin
clydinhttps://github.com/clydin
on Jan 6, 2017https://github.com/angular/angular-cli/issues/3204#issuecomment-270912513
@maxime1992https://github.com/maxime1992
https://github.com/maxime1992
maxime1992https://github.com/maxime1992
on Jan 6, 2017https://github.com/angular/angular-cli/issues/3204#issuecomment-270924502
@clydinhttps://github.com/clydin
https://github.com/clydin
clydinhttps://github.com/clydin
on Jan 6, 2017https://github.com/angular/angular-cli/issues/3204#issuecomment-270925320
angular/angular#13676https://github.com/angular/angular/pull/13676
angular/angular#13678https://github.com/angular/angular/pull/13678
https://github.com/Rebolon
Rebolonhttps://github.com/Rebolon
on Jan 6, 2017https://github.com/angular/angular-cli/issues/3204#issuecomment-270934672
@maxime1992https://github.com/maxime1992
angular/angular#13676https://github.com/angular/angular/pull/13676
matskohttps://github.com/matsko
on Jan 10, 2017https://github.com/angular/angular-cli/issues/3204#event-918363685
fix(compiler-cli): avoid handling functions in loadChildren as lazy l…https://github.com/angular/angular/commit/aeed7373afd0c7543292954a5e605f9b6f8d9b00
https://docs.github.com/articles/closing-issues-via-commit-messages
aeed737https://github.com/angular/angular/commit/aeed7373afd0c7543292954a5e605f9b6f8d9b00
fix(compiler-cli): avoid handling functions in loadChildren as lazy l…https://github.com/matsko/angular/commit/313683f6f35070f1920ee35291b03767d130e6aa
https://docs.github.com/articles/closing-issues-via-commit-messages
313683fhttps://github.com/matsko/angular/commit/313683f6f35070f1920ee35291b03767d130e6aa
https://github.com/maxime1992
maxime1992https://github.com/maxime1992
on Jan 20, 2017https://github.com/angular/angular-cli/issues/3204#issuecomment-274065344
angular/angular#13909https://github.com/angular/angular/pull/13909
angular/angular#14005https://github.com/angular/angular/issues/14005
https://github.com/khryshyn
khryshynhttps://github.com/khryshyn
on Feb 8, 2017https://github.com/angular/angular-cli/issues/3204#issuecomment-278467381
wKozahttps://github.com/wKoza
on Feb 12, 2017https://github.com/angular/angular-cli/issues/3204#event-958611080
fix(compiler-cli): avoid handling functions in loadChildren as lazy l…https://github.com/wKoza/angular/commit/5d0210e0f028eef66bf72ca82128d1061e6f31be
https://docs.github.com/articles/closing-issues-via-commit-messages
5d0210ehttps://github.com/wKoza/angular/commit/5d0210e0f028eef66bf72ca82128d1061e6f31be
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 6, 2019https://github.com/angular/angular-cli/issues/3204#issuecomment-528947288
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 6, 2019https://github.com/angular/angular-cli/issues/3204#event-2615103720
idlecharahttps://github.com/idlechara
on Apr 27, 2021https://github.com/angular/angular-cli/issues/3204#event-4648387839
fix(compiler-cli): avoid handling functions in loadChildren as lazy l…https://github.com/idlechara/angular/commit/a2fa5c1c07ca472d5110c3800131c84376af669d
https://docs.github.com/articles/closing-issues-via-commit-messages
a2fa5c1https://github.com/idlechara/angular/commit/a2fa5c1c07ca472d5110c3800131c84376af669d
adhambaouzhttps://github.com/adhambaouz
on Nov 20, 2026https://github.com/angular/angular-cli/issues/3204#event-36821990417
fix(compiler-cli): avoid handling functions in loadChildren as lazy l…https://github.com/adhambaouz/angular/commit/3543357166ae509d7f6957f85d517562292c7062
https://docs.github.com/articles/closing-issues-via-commit-messages
3543357https://github.com/adhambaouz/angular/commit/3543357166ae509d7f6957f85d517562292c7062
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/3204
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/3204
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.