René's URL Explorer Experiment


Title: ng test fails to build lazy loading modules · Issue #8066 · angular/angular-cli · GitHub

Open Graph Title: ng test fails to build lazy loading modules · Issue #8066 · angular/angular-cli

X Title: ng test fails to build lazy loading modules · Issue #8066 · angular/angular-cli

Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. Angular CLI: 1.5.0-rc.0 Node: 8.5.0 OS: win32 x64 Angular: 5.0.0-rc.2 ... animations, common, compiler, compiler-cli, core, forms ... http, l...

Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. Angular CLI: 1.5.0-rc.0 Node: 8.5.0 OS: win32 x64 Angular: 5.0.0-rc.2 ... animations, common, compile...

X Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. Angular CLI: 1.5.0-rc.0 Node: 8.5.0 OS: win32 x64 Angular: 5.0.0-rc.2 ... animations, common, compile...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng test fails to build lazy loading modules","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n```\r\nAngular CLI: 1.5.0-rc.0\r\nNode: 8.5.0\r\nOS: win32 x64\r\nAngular: 5.0.0-rc.2\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\n@angular/cli: 1.5.0-rc.0\r\n@angular-devkit/build-optimizer: 0.0.27\r\n@angular-devkit/core: 0.0.20\r\n@angular-devkit/schematics: 0.0.33\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.8.0-rc.0\r\n@schematics/angular: 0.0.45\r\ntypescript: 2.3.4\r\nwebpack: 3.7.1\r\n```\r\n\r\n### Repro steps.\r\n- ```ng new apptest```\r\n- update packages to latest pre-releases angular 5.0.0-rc.2, angluar/cli 1.5.0-rc.0 and typescript 2.4.0\r\n- Create a module to be lazy loaded\r\n- run ```ng test```\r\n\r\n### The log given by the failure.\r\n```\r\nC:\\Users\\development\\apptest>ng test\r\n 10% building modules 1/1 modules 0 active16 10 2017 08:13:36.642:WARN [karma]: No captured browser, open http://localhost:9876/\r\n16 10 2017 08:13:36.662:WARN [karma]: Port 9876 in use\r\n16 10 2017 08:13:36.665:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9877/\r\n16 10 2017 08:13:36.665:INFO [launcher]: Launching browser Chrome with unlimited concurrency\r\n16 10 2017 08:13:36.690:INFO [launcher]: Starting browser Chrome                                                                                                                                                              [../../../../../src/polyfills.ts] ./src/po\r\nlyfills.ts 299 bytes {polyfills} [built] [failed] [1 error]\r\n   [0] multi ./src/polyfills.ts 28 bytes {polyfills} [built]\r\n[../../../../../src/test.ts] ./src/test.ts 299 bytes {main} [built] [failed] [1 error]\r\n\r\nERROR in ./src/test.ts\r\nModule build failed: Error: TypeScript compilation failed.\r\n    at plugin.done.then (C:\\Users\\development\\apptest\\node_modules\\@ngtools\\webpack\\src\\loader.js:479:27)\r\n    at \u003canonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:188:7)\r\n\r\nERROR in ./src/polyfills.ts\r\nModule build failed: Error: TypeScript compilation failed.\r\n    at plugin.done.then (C:\\Users\\development\\apptest\\node_modules\\@ngtools\\webpack\\src\\loader.js:479:27)\r\n    at \u003canonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:188:7)\r\n @ multi ./src/polyfills.ts\r\n\r\nERROR in Error: C:/Users/development/apptest/src/app/lazy/lazy.module.ts is not part of the TypeScript compilation. Please include it in your tsconfig via the 'files' or 'include' property.\r\n    at sourceFiles._getChangedTsFiles.map (C:\\Users\\development\\apptest\\node_modules\\@ngtools\\webpack\\src\\angular_compiler_plugin.js:517:31)\r\n    at Array.map (\u003canonymous>)\r\n    at Promise.resolve.then.then.then (C:\\Users\\development\\apptest\\node_modules\\@ngtools\\webpack\\src\\angular_compiler_plugin.js:513:63)\r\n    at \u003canonymous>\r\n```\r\n\r\n### Desired functionality.\r\nShould build and run tests\r\n\r\n### Mention any other details that might be useful.\r\n\r\n- ng build works fine (jit + aot)\r\n- current workaround is changing tsconfig.spec.json include section to **/*.ts\r\n- works fine in angular 5 with angular-cli 1.4.7(with typescript 2.4.2) and angular 4.4.5 with angular-cli 1.5.0-rc.0 (with typescript 2.3.4)\r\n","author":{"url":"https://github.com/tsangste","@type":"Person","name":"tsangste"},"datePublished":"2017-10-16T10:04:49Z","url":"https://github.com/angular/angular-cli/issues/8066"}

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:dbfa5b41-38ff-4125-112a-89d7452ce754
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE0E0:A99C2:3423EC7:424B77C:6B01C7DB
html-safe-noncec7d012a1d9a931ae4ee5abe0a9d3ec160b206edac4342910d4cadd09704a4860
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEUwOkE5OUMyOjM0MjNFQzc6NDI0Qjc3Qzo2QjAxQzdEQiIsInZpc2l0b3JfaWQiOiIxMzk2NjEwNTg0OTA4MjUzMTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1dce98d08039943f107480313e6c9cc310a0100578cf5feb4bff99f56b48b10d
hovercard-subject-tagissue:265713996
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/8066/issue_layout
twitter:imagehttps://opengraph.githubassets.com/314b0cd98631b4a8f2d1c006d8924f57e23fe33faddb57d15b77efab498d38ea/angular/angular-cli/issues/8066
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/314b0cd98631b4a8f2d1c006d8924f57e23fe33faddb57d15b77efab498d38ea/angular/angular-cli/issues/8066
og:image:altBug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. Angular CLI: 1.5.0-rc.0 Node: 8.5.0 OS: win32 x64 Angular: 5.0.0-rc.2 ... animations, common, compile...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametsangste
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/8066#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F8066
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%2F8066
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/8066
Reloadhttps://github.com/angular/angular-cli/issues/8066
Reloadhttps://github.com/angular/angular-cli/issues/8066
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/8066
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/8066
#8215https://github.com/angular/angular-cli/pull/8215
ng test fails to build lazy loading moduleshttps://github.com/angular/angular-cli/issues/8066#top
#8215https://github.com/angular/angular-cli/pull/8215
https://github.com/filipesilva
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/tsangste
tsangstehttps://github.com/tsangste
on Oct 16, 2017https://github.com/angular/angular-cli/issues/8066#issue-265713996
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 16, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-336884464
filipesilvahttps://github.com/filipesilva
on Oct 16, 2017https://github.com/angular/angular-cli/issues/8066#event-1294814720
filipesilvahttps://github.com/filipesilva
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
on Oct 16, 2017https://github.com/angular/angular-cli/issues/8066#event-1294815735
https://github.com/leocaseiro
leocaseirohttps://github.com/leocaseiro
on Oct 26, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-339819766
https://github.com/Manduro
Mandurohttps://github.com/Manduro
on Oct 27, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-339946304
https://github.com/dinvlad
dinvladhttps://github.com/dinvlad
on Oct 27, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-340073939
@Mandurohttps://github.com/Manduro
@tsangstehttps://github.com/tsangste
https://github.com/cexbrayat
cexbrayathttps://github.com/cexbrayat
on Oct 27, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-340113406
@Mandurohttps://github.com/Manduro
https://github.com/balteo
balteohttps://github.com/balteo
on Oct 28, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-340183589
@Mandurohttps://github.com/Manduro
https://github.com/balteo
balteohttps://github.com/balteo
on Oct 30, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-340556389
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 30, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-340564161
#8215https://github.com/angular/angular-cli/pull/8215
#8215https://github.com/angular/angular-cli/pull/8215
filipesilvahttps://github.com/filipesilva
on Oct 30, 2017https://github.com/angular/angular-cli/issues/8066#event-1317467150
fix(@angular/cli): don't search for lazy routes in Angular 5 ng testhttps://github.com/filipesilva/angular-cli/commit/1154e559728175e307b92f7199d0d872311406f2
https://docs.github.com/articles/closing-issues-via-commit-messages
1154e55https://github.com/filipesilva/angular-cli/commit/1154e559728175e307b92f7199d0d872311406f2
fix(@angular/cli): don't search for lazy routes in Angular 5 ng testhttps://github.com/filipesilva/angular-cli/commit/8a99f0b8f2a6f151eac88c5888c9ea703607092a
https://docs.github.com/articles/closing-issues-via-commit-messages
8a99f0bhttps://github.com/filipesilva/angular-cli/commit/8a99f0b8f2a6f151eac88c5888c9ea703607092a
hanslhttps://github.com/hansl
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8215https://github.com/angular/angular-cli/pull/8215
on Oct 30, 2017https://github.com/angular/angular-cli/issues/8066#event-1317758662
hanslhttps://github.com/hansl
on Oct 30, 2017https://github.com/angular/angular-cli/issues/8066#event-1317758806
fix(@angular/cli): don't search for lazy routes in Angular 5 ng testhttps://github.com/angular/angular-cli/commit/5f979d784053adea11fa3af705154e739a6e1ae2
https://docs.github.com/articles/closing-issues-via-commit-messages
5f979d7https://github.com/angular/angular-cli/commit/5f979d784053adea11fa3af705154e739a6e1ae2
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 30, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-340615293
hanslhttps://github.com/hansl
on Oct 30, 2017https://github.com/angular/angular-cli/issues/8066#event-1317779663
fix(@angular/cli): don't search for lazy routes in Angular 5 ng testhttps://github.com/angular/angular-cli/commit/f452e7d185634b0e2ec94e69cec069d37b4bac49
https://docs.github.com/articles/closing-issues-via-commit-messages
f452e7dhttps://github.com/angular/angular-cli/commit/f452e7d185634b0e2ec94e69cec069d37b4bac49
https://github.com/Manduro
Mandurohttps://github.com/Manduro
on Oct 31, 2017https://github.com/angular/angular-cli/issues/8066#issuecomment-340696598
@filipesilvahttps://github.com/filipesilva
#6325https://github.com/angular/angular-cli/issues/6325
asnowwolfhttps://github.com/asnowwolf
on Nov 2, 2017https://github.com/angular/angular-cli/issues/8066#event-1323033427
fix(@angular/cli): don't search for lazy routes in Angular 5 ng testhttps://github.com/asnowwolf/angular-cli/commit/afb610380d6ba864d34bcfc0313e9ffa36b0ba12
https://docs.github.com/articles/closing-issues-via-commit-messages
afb6103https://github.com/asnowwolf/angular-cli/commit/afb610380d6ba864d34bcfc0313e9ffa36b0ba12
dond2cloudshttps://github.com/dond2clouds
on Apr 23, 2018https://github.com/angular/angular-cli/issues/8066#event-1589896842
fix(@angular/cli): don't search for lazy routes in Angular 5 ng testhttps://github.com/d2clouds/speedray-cli/commit/d035f54fa31e47d2d0efe4f23060314e76b9c820
https://docs.github.com/articles/closing-issues-via-commit-messages
d035f54https://github.com/d2clouds/speedray-cli/commit/d035f54fa31e47d2d0efe4f23060314e76b9c820
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/8066#issuecomment-529114148
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/8066#event-2616244156
mostafaibrhttps://github.com/mostafaibr
on May 29, 2026https://github.com/angular/angular-cli/issues/8066#event-26099528197
fix(@angular/cli): don't search for lazy routes in Angular 5 ng testhttps://github.com/mostafaibr/angular-cli/commit/ba303c796cd7d6105cd093d13251cf1e25053a12
https://docs.github.com/articles/closing-issues-via-commit-messages
ba303c7https://github.com/mostafaibr/angular-cli/commit/ba303c796cd7d6105cd093d13251cf1e25053a12
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/8066
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/8066
filipesilvahttps://github.com/filipesilva
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%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.