Skip to content

Validating support for Angular versions greater than 9#9

Merged
Skitionek merged 5 commits intomainfrom
copilot/update-peer-dependencies
Apr 11, 2026
Merged

Validating support for Angular versions greater than 9#9
Skitionek merged 5 commits intomainfrom
copilot/update-peer-dependencies

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 11, 2026

  • Investigate CI failure: TS2693: 'Component' only refers to a type, but is being used as a value here in test component files
  • Root cause: tsconfig.build.json inherited include: ["src/**/*.ts", "test/**/*.ts"] from base tsconfig, causing test fixture components to be compiled during the build step with TypeScript 5.x + older Angular type declarations
  • Fix: replaced exclude: ["test/**/*.spec.ts"] with include: ["src/**/*.ts"] in tsconfig.build.json so the build only compiles library source files
  • Validate the fix passes CI for all Angular versions (13–21)

@Skitionek
Copy link
Copy Markdown
Owner

@copilot fix tests

@Skitionek
Copy link
Copy Markdown
Owner

@copilot try again

@Skitionek
Copy link
Copy Markdown
Owner

@anthropic-code-agent can you take over?

@Skitionek
Copy link
Copy Markdown
Owner

@openai-code-agent can you take over?

@Skitionek
Copy link
Copy Markdown
Owner

@copilot try again

@Skitionek
Copy link
Copy Markdown
Owner

@copilot try again

@Skitionek
Copy link
Copy Markdown
Owner

@copilot try again

Copy link
Copy Markdown
Owner

@copilot Fix Error: test/components/dynamic-outlets.component.ts(7,2): error TS2693: 'Component' only refers to a type, but is being used as a value here.
Error: test/components/placeholder.component.ts(3,2): error TS2693: 'Component' only refers to a type, but is being used as a value here.
Error: Process completed with exit code 2.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 11, 2026

@copilot Fix Error: test/components/dynamic-outlets.component.ts(7,2): error TS2693: 'Component' only refers to a type, but is being used as a value here.
Error: test/components/placeholder.component....

Fixed in commit 3fdec14. The root cause was that tsconfig.build.json inherited include: ["src/**/*.ts", "test/**/*.ts"] from the base tsconfig, so test fixture components (which use @Component with TypeScript 5.x + older Angular type declarations) were compiled during the build step. Changed exclude: ["test/**/*.spec.ts"] to include: ["src/**/*.ts"] so the build only compiles library source files.

@Skitionek Skitionek merged commit b3c5816 into main Apr 11, 2026
20 checks passed
@Skitionek Skitionek deleted the copilot/update-peer-dependencies branch April 11, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants