René's URL Explorer Experiment


Title: new library public-api.ts file not using component type declared on angular.json's schematics · Issue #26981 · angular/angular-cli · GitHub

Open Graph Title: new library public-api.ts file not using component type declared on angular.json's schematics · Issue #26981 · angular/angular-cli

X Title: new library public-api.ts file not using component type declared on angular.json's schematics · Issue #26981 · angular/angular-cli

Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When I create a new library the default component inside of the lib folder takes its type from the component schematic declar...

Open Graph Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When I create a new library the default component inside of the lib folder takes its ...

X Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When I create a new library the default component inside of the lib folder takes ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"new library public-api.ts file not using component type declared on angular.json's schematics","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nDon't known / other\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWhen I create a new library the default component inside of the lib folder takes its type from the component schematic declared on angular.json. If for example my angular.json looks like this:\r\n```\r\n{\r\n    //...\r\n    \"newProjectRoot\": \"projects\",\r\n    //...\r\n    \"schematics\": {\r\n        \"@schematics/angular:application\": {\r\n          \"style\": \"scss\",\r\n          \"inlineTemplate\": true,\r\n          \"inlineStyle\": true,\r\n          \"ssr\": false\r\n        },\r\n        \"@schematics/angular:component\": {\r\n          \"changeDetection\": \"OnPush\",\r\n          \"type\": \"Cmp\",\r\n          \"inlineStyle\": true,\r\n          \"inlineTemplate\": true,\r\n          \"style\": \"scss\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nAfter creating a library using `ng generate library foo-library`, the new library includes an empty dummy `FooLibraryCmp` inside the `projects/foo-library/src/lib/foo-library.cmp.ts`. However, the contents of `projects/foo-library/src/public-api.ts` look like this:\r\n\r\n```\r\n/*\r\n * Public API Surface of foo-library\r\n */\r\n\r\nexport * from './lib/foo-library.service';\r\nexport * from './lib/foo-library.component'; // uses .component instead of .cmp\r\n```\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 17.1.1\r\nNode: 18.18.0\r\nPackage Manager: npm 9.6.6\r\nOS: win32 x64\r\n\r\nAngular: 17.1.1\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router, ssr\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1701.1\r\n@angular-devkit/build-angular   17.1.1\r\n@angular-devkit/core            17.1.1\r\n@angular-devkit/schematics      17.1.1\r\n@schematics/angular             17.1.1\r\nng-packagr                      17.1.2\r\nrxjs                            7.8.1\r\ntypescript                      5.2.2\r\nzone.js                         0.14.3\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/johalternate","@type":"Person","name":"johalternate"},"datePublished":"2024-01-28T01:15:13Z","url":"https://github.com/angular/angular-cli/issues/26981"}

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:430921d9-34ac-533d-1a04-51775659dcb1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD17A:29AEE8:314D8C6:41B0399:6B01E97B
html-safe-nonce3c39aa5c428effc2d88a3c8af09d9719a2703310214e1afad00302c342b96f2a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTdBOjI5QUVFODozMTREOEM2OjQxQjAzOTk6NkIwMUU5N0IiLCJ2aXNpdG9yX2lkIjoiMzQyMjQ1NDM4MTA1OTEwNzE5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac41de79795ec2c3584bd99aa7ffd7e711d32c79a12748be81d1511fea2dc7c329
hovercard-subject-tagissue:2103930861
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/26981/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a3905e7863c4cd03e3ad8af7b18629151a5935c3ee2d6fc5fc7b00fe697d79eb/angular/angular-cli/issues/26981
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3905e7863c4cd03e3ad8af7b18629151a5935c3ee2d6fc5fc7b00fe697d79eb/angular/angular-cli/issues/26981
og:image:altWhich @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? No Description When I create a new library the default component inside of the lib folder takes its ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejohalternate
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/26981#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F26981
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%2F26981
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/26981
Reloadhttps://github.com/angular/angular-cli/issues/26981
Reloadhttps://github.com/angular/angular-cli/issues/26981
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/26981
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/26981
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
new library public-api.ts file not using component type declared on angular.json's schematicshttps://github.com/angular/angular-cli/issues/26981#top
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%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
https://github.com/johalternate
johalternatehttps://github.com/johalternate
on Jan 28, 2024https://github.com/angular/angular-cli/issues/26981#issue-2103930861
alxhubhttps://github.com/alxhub
angular/angularhttps://github.com/angular/angular
on Jan 28, 2024https://github.com/angular/angular-cli/issues/26981#event-11618626917
alan-agius4https://github.com/alan-agius4
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%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
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%22
on Jan 29, 2024https://github.com/angular/angular-cli/issues/26981#event-11624089400
https://github.com/johalternate
johalternatehttps://github.com/johalternate
on Jan 25, 2025https://github.com/angular/angular-cli/issues/26981#issuecomment-2613704991
johalternate@ee48a80https://github.com/johalternate/angular-cli/commit/ee48a807b78077c97a25e3a69deeae64b2d6399b
https://github.com/MeAkib
MeAkibhttps://github.com/MeAkib
on Oct 18, 2026https://github.com/angular/angular-cli/issues/26981#issuecomment-6250285720
@alan-agius4https://github.com/alan-agius4
661609ehttps://github.com/angular/angular-cli/commit/661609e3e583198828baf236338db17b6222f4d8
https://github.com/ChristopherPHolder
ChristopherPHolderhttps://github.com/ChristopherPHolder
on Oct 26, 2026https://github.com/angular/angular-cli/issues/26981#issuecomment-6426717224
@MeAkibhttps://github.com/MeAkib
661609ehttps://github.com/angular/angular-cli/commit/661609e3e583198828baf236338db17b6222f4d8
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Oct 27, 2026https://github.com/angular/angular-cli/issues/26981#issuecomment-6435936165
@MeAkibhttps://github.com/MeAkib
@ChristopherPHolderhttps://github.com/ChristopherPHolder
alan-agius4https://github.com/alan-agius4
not plannedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Oct 27, 2026https://github.com/angular/angular-cli/issues/26981#event-34339527931
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/26981
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/26981
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%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
Bughttps://github.com/angular/angular-cli/issues?q=type:"Bug"
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.