Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
I've successfully updated the Angular 21 build errors. Here are the key changes made to get things running, as there were breaking changes by simply updating our packages. There are also more breaking changes introduced by igniteui-angular so I decided not to update that package yet in this PR, see
https://github.com/IgniteUI/igniteui-angular/blob/master/CHANGELOG.md#breaking-changes-1
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)