René's URL Explorer Experiment


Title: [router/testing] `No base href set` errors in tests appear with router when using Debug Mode · Issue #19116 · angular/angular-cli · GitHub

Open Graph Title: [router/testing] `No base href set` errors in tests appear with router when using Debug Mode · Issue #19116 · angular/angular-cli

X Title: [router/testing] `No base href set` errors in tests appear with router when using Debug Mode · Issue #19116 · angular/angular-cli

Description: 🐞 Bug report new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? No. Seems to me that it's a pretty old issue. Description In short, when testing an app with routing, tests will run f...

Open Graph Description: 🐞 Bug report new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? No. Seems to me that it's a pretty old issue. Description In short, when testi...

X Description: 🐞 Bug report new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? No. Seems to me that it's a pretty old issue. Description In short, when t...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[router/testing] `No base href set` errors in tests appear with router when using Debug Mode","articleBody":"# 🐞 Bug report\r\n\r\n- [ ] new\r\n- [ ] build\r\n- [ ] serve\r\n- [x] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n\r\n\r\n### Is this a regression?\r\n\r\nNo. Seems to me that it's a pretty old issue.\r\n\r\n\r\n### Description\r\n\r\nIn short, when testing an app with routing, tests will run fine unless you toggle Karma's debug mode. There all components with routing will throw the aforementioned \"No base href set\" error.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nI've made a demo repo for it [here](https://github.com/IxquitilisSaid/karma-debug-routing-error)\r\n\r\n```\r\nnpm i\r\nng test\r\n```\r\n\r\nInitially, all the tests will be green and succeed but if you click the `Debug` button above, you'll see the error being thrown\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nError: No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.\r\n    at new PathLocationStrategy (http://localhost:9876/_karma_webpack_/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js:378:1)\r\n    at Object.provideLocationStrategy [as useFactory] (http://localhost:9876/_karma_webpack_/node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js:5520:1)\r\n    at Object.factory (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:11338:1)\r\n    at R3Injector.hydrate (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:11249:1)\r\n    at R3Injector.get (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:11071:1)\r\n    at injectInjectorOnly (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:801:1)\r\n    at Module.ɵɵinject (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:805:1)\r\n    at Object.Location_Factory [as factory] (http://localhost:9876/_karma_webpack_/node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js:695:90)\r\n    at R3Injector.hydrate (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:11249:1)\r\n    at R3Injector.get (http://localhost:9876/_karma_webpack_/node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js:11071:1)\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre>\u003ccode>\r\n     _                      _                 ____ _     ___\r\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\r\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___/\r\n\r\n\r\nAngular CLI: 10.0.8\r\nNode: 10.16.0\r\nOS: darwin x64\r\n\r\nAngular: 10.0.14\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.1000.8\r\n@angular-devkit/build-angular     0.1000.8\r\n@angular-devkit/build-optimizer   0.1000.8\r\n@angular-devkit/build-webpack     0.1000.8\r\n@angular-devkit/core              10.0.8\r\n@angular-devkit/schematics        10.0.8\r\n@angular/cli                      10.0.8\r\n@ngtools/webpack                  10.0.8\r\n@schematics/angular               10.0.8\r\n@schematics/update                0.1000.8\r\nrxjs                              6.5.5\r\ntypescript                        3.9.7\r\nwebpack                           4.43.0\r\n\u003c/code>\u003c/pre>\r\n\r\n","author":{"url":"https://github.com/IxquitilisSaid","@type":"Person","name":"IxquitilisSaid"},"datePublished":"2020-10-19T09:02:04Z","url":"https://github.com/angular/angular-cli/issues/19116"}

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:05dc010a-d5ff-41a9-90cb-8c38cd909753
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE12:2A1EC8:11D8BF9:166AA91:6B024A60
html-safe-nonce1a27b36423124e33afb2214516e84c9153fe605cae468f166583f32fd907d551
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTEyOjJBMUVDODoxMUQ4QkY5OjE2NkFBOTE6NkIwMjRBNjAiLCJ2aXNpdG9yX2lkIjoiNDk4MzQ3NTM1MDE5MDMxMjAzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9593349719706bb93fcce3035822d8f1031d1dac9f619a466c0286bbaf081f2a
hovercard-subject-tagissue:724420533
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/19116/issue_layout
twitter:imagehttps://opengraph.githubassets.com/56cbe3aa6e5a072c11d0c09dad1ffbffed2c42a7125107058b63bfcf0ad82e97/angular/angular-cli/issues/19116
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/56cbe3aa6e5a072c11d0c09dad1ffbffed2c42a7125107058b63bfcf0ad82e97/angular/angular-cli/issues/19116
og:image:alt🐞 Bug report new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? No. Seems to me that it's a pretty old issue. Description In short, when testi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameIxquitilisSaid
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/19116#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F19116
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%2F19116
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/19116
Reloadhttps://github.com/angular/angular-cli/issues/19116
Reloadhttps://github.com/angular/angular-cli/issues/19116
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/19116
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/19116
#19119https://github.com/angular/angular-cli/pull/19119
[router/testing] No base href set errors in tests appear with router when using Debug Modehttps://github.com/angular/angular-cli/issues/19116#top
#19119https://github.com/angular/angular-cli/pull/19119
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:karmahttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Akarma%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/IxquitilisSaid
IxquitilisSaidhttps://github.com/IxquitilisSaid
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#issue-724420533
herehttps://github.com/IxquitilisSaid/karma-debug-routing-error
alan-agius4https://github.com/alan-agius4
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
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:karmahttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Akarma%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#event-3892263521
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular-cli/milestone/12
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#event-3892265317
alan-agius4https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#event-3892265485
IxquitilisSaidhttps://github.com/IxquitilisSaid
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#event-3892479995
fix(@angular-devkit/build-angular): add a base href to karma debug co…https://github.com/IxquitilisSaid/angular-cli/commit/24854df61ac7ee5d5ae95cf6b6114794134e776e
https://docs.github.com/articles/closing-issues-via-commit-messages
24854dfhttps://github.com/IxquitilisSaid/angular-cli/commit/24854df61ac7ee5d5ae95cf6b6114794134e776e
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
ae94245https://github.com/angular/angular-cli/commit/ae94245131d883b5b060e8d6b6d05628bc448ea0
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#event-3892662933
alan-agius4https://github.com/alan-agius4
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#event-3892668671
fix(@angular-devkit/build-angular): add a base href to karma debug co…https://github.com/angular/angular-cli/commit/f25c5d723a50398e160ad9d72f84b3f0b2b69b53
https://docs.github.com/articles/closing-issues-via-commit-messages
f25c5d7https://github.com/angular/angular-cli/commit/f25c5d723a50398e160ad9d72f84b3f0b2b69b53
fix(@angular-devkit/build-angular): add a base href to karma debug co…https://github.com/angular/angular-cli/commit/8b1ed419c90a9de7b593fdbdecc60f007da9469e
https://docs.github.com/articles/closing-issues-via-commit-messages
8b1ed41https://github.com/angular/angular-cli/commit/8b1ed419c90a9de7b593fdbdecc60f007da9469e
alan-agius4https://github.com/alan-agius4
fix(@angular-devkit/build-angular): add a base href to karma debug context #19119https://github.com/angular/angular-cli/pull/19119
on Oct 19, 2020https://github.com/angular/angular-cli/issues/19116#event-3892681976
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 19, 2020https://github.com/angular/angular-cli/issues/19116#issuecomment-730202954
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 19, 2020https://github.com/angular/angular-cli/issues/19116#event-4014486449
VonLuderitzhttps://github.com/VonLuderitz
on Feb 19, 2025https://github.com/angular/angular-cli/issues/19116#event-16372741278
fix(@angular-devkit/build-angular): add a base href to karma debug co…https://github.com/VonLuderitz/angular-cli/commit/ae94245131d883b5b060e8d6b6d05628bc448ea0
https://docs.github.com/articles/closing-issues-via-commit-messages
ae94245https://github.com/VonLuderitz/angular-cli/commit/ae94245131d883b5b060e8d6b6d05628bc448ea0
mostafaibrhttps://github.com/mostafaibr
on May 29, 2026https://github.com/angular/angular-cli/issues/19116#event-26099624306
fix(@angular-devkit/build-angular): add a base href to karma debug co…https://github.com/mostafaibr/angular-cli/commit/eae8f37c76ac2bbc6548c54b2be1661779fad524
https://docs.github.com/articles/closing-issues-via-commit-messages
eae8f37https://github.com/mostafaibr/angular-cli/commit/eae8f37c76ac2bbc6548c54b2be1661779fad524
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/19116
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/19116
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:karmahttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Akarma%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.