Skip to content

mdd-update-21.0.0#424

Merged
HUSSAR-mtrela merged 15 commits into
vnextfrom
mdd-angular-21-and-fixes
Jan 27, 2026
Merged

mdd-update-21.0.0#424
HUSSAR-mtrela merged 15 commits into
vnextfrom
mdd-angular-21-and-fixes

Conversation

@mddifilippo89
Copy link
Copy Markdown
Contributor

@mddifilippo89 mddifilippo89 commented Jan 23, 2026

Issues Fixed:
NG2010 Error - CUSTOM_ELEMENTS_SCHEMA in components: Removed the schemas property from component decorators in:

app.component.ts
docs-layout.component.ts
These can only be used in NgModules or standalone components, not regular components TS2307 Module Resolution Error: Fixed the "Cannot find module" errors for Angular subpath exports by:

Changed moduleResolution from "node" to "bundler"

Something to consider adding:
Enabled resolvePackageJsonExports: true
Enabled resolvePackageJsonImports: true
This allows TypeScript to resolve Angular's new subpath exports like @angular/common/http and @angular/platform-browser/animations Duplicate Configuration: Removed duplicate skipLibCheck: true entry from tsconfig.base.json:11

Perfect! The build succeeded. Let me create a summary of what was fixed:

Summary
I've successfully fixed the Angular 21 build errors. Here are the key changes made:

Issues Fixed:
NG2010 Error - CUSTOM_ELEMENTS_SCHEMA in components: Removed the schemas property from component decorators in:

app.component.ts
docs-layout.component.ts
These can only be used in NgModules or standalone components, not regular components
TS2307 Module Resolution Error: Fixed the "Cannot find module" errors for Angular subpath exports by:

Changed moduleResolution from "node" to "bundler"
Enabled resolvePackageJsonExports: true
Enabled resolvePackageJsonImports: true
This allows TypeScript to resolve Angular's new subpath exports like @angular/common/http and @angular/platform-browser/animations
Duplicate Configuration: Removed duplicate skipLibCheck: true entry from tsconfig.base.json:11

Configuration Changes:
The tsconfig.base.json was updated with:

moduleResolution: "bundler" - Allows resolution of subpath exports
resolvePackageJsonExports: true - Respects the "exports" field in package.json
resolvePackageJsonImports: true - Respects the "imports" field in package.json
Result:
✅ Build now completes successfully with only warnings (not errors):

JSZip namespace import warning (library issue, not blocking)
CommonJS dependency warnings (not blocking)
Theme component exclusion warnings (intentional)
@mddifilippo89 mddifilippo89 added the status: in-review PR is ready for review label Jan 23, 2026
@mddifilippo89 mddifilippo89 requested a review from Copilot January 23, 2026 21:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

mdd-update-angular21
mdd-update
Comment thread browser/scripts/patch-igniteui.js Fixed
mdd-update
@mddifilippo89 mddifilippo89 requested a review from Copilot January 27, 2026 15:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread browser/tsconfig.json Outdated
Comment thread browser/src/app/app.component.ts Outdated
public title = "Samples";
private theme = "default-theme";
private styleElem: HTMLStyleElement;
private styleElem: HTMLStyleElement | undefined;
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making styleElem optional will cause a runtime error on line 26 where it's accessed without a null check (this.styleElem.textContent). Either initialize this property in ngOnInit or add null safety checks before accessing it.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Comment thread browser/src/app/app.component.ts Outdated
Comment thread browser/package.json Outdated
Comment thread browser/tsconfig.base.json Outdated
mddifilippo89 and others added 4 commits January 27, 2026 11:04
mdd-update
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

@mddifilippo89 I've opened a new pull request, #425, to work on those changes. Once the pull request is ready, I'll request review from you.

@HUSSAR-mtrela HUSSAR-mtrela merged commit 2d1d12a into vnext Jan 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: in-review PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants