angular/packages
JoostK 4d9c4567ed fix(compiler-cli): ensure component import diagnostics are reported within the imports expression
PR #60455 improved error reporting for `@Component.imports` by scoping the diagnostic to an individual
element within the `imports` array, but this may introduce hard to track diagnostics when it ends
up being reported (far) away from the component itself.

This can be even more problematic when the diagnostic would end up being reported in a declaration file,
as happened in issue #65686; the declaration files of an imported library contained syntax that the
static interpreter did not support, hence the `@Component.imports` was rejected with a diagnostic reported
in the library's declaration file. This diagnostic isn't guaranteed to be reported (e.g. the CLI only
gathers Angular-specific diagnostics for Angular-compiled files, which excludes declaration files).

This commit changes the diagnostic location to ensure it is being reported within the `@Component.imports`
expression, in most cases retaining the desirable effect of #60455 while avoiding out-of-band diagnostics.

(cherry picked from commit 106ba63650)
2026-01-02 08:21:12 +01:00
..
animations refactor(core): mark VERSION exports as pure for better tree-shaking 2026-01-02 08:13:44 +01:00
benchpress ci: reformat files 2025-12-16 14:44:25 -08:00
common ci: reformat files 2025-12-16 14:44:25 -08:00
compiler fix(compiler): provide location information for literal map keys 2026-01-02 08:18:06 +01:00
compiler-cli fix(compiler-cli): ensure component import diagnostics are reported within the imports expression 2026-01-02 08:21:12 +01:00
core refactor(core): implement missing OnDestroy for schedulers 2026-01-02 08:20:00 +01:00
docs/di build: format md files 2025-11-06 10:07:13 -08:00
elements refactor(core): mark VERSION as @__PURE__ for better tree-shaking 2025-11-10 12:04:09 -08:00
examples ci: reformat files 2025-12-16 14:44:25 -08:00
forms refactor(forms): add MANAGED_METADATA_LAZY_CREATION runtime error 2026-01-02 08:17:43 +01:00
language-service fix(language-service): Prevent language service from crashing on suggestion diagnostic errors 2025-12-17 10:13:15 -08:00
localize ci: reformat files 2025-12-16 14:44:25 -08:00
misc/angular-in-memory-web-api ci: reformat files 2025-12-16 14:44:25 -08:00
platform-browser ci: reformat files 2025-12-16 14:44:25 -08:00
platform-browser-dynamic refactor(core): mark VERSION as @__PURE__ for better tree-shaking 2025-11-10 12:04:09 -08:00
platform-server ci: reformat files 2025-12-16 14:44:25 -08:00
private/testing build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
router ci: reformat files 2025-12-16 14:44:25 -08:00
service-worker refactor(core): correct all typeof ngDevMode comparison patterns introduced by #63875 2025-12-08 10:30:06 -08:00
ssr/docs build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
upgrade docs(docs-infra): expose VERSION from @angular/upgrade 2025-12-08 08:41:40 -08:00
zone.js ci: reformat files 2025-12-16 14:44:25 -08:00
BUILD.bazel build(forms): expose signal forms compat package 2025-11-14 17:23:39 +00:00
circular-deps-test.conf.js docs(docs-infra): lift circular imports (#63186) 2025-08-19 07:58:45 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update website URL in license banners (#64183) 2025-10-02 07:56:58 -07:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md build: format md files 2025-11-06 10:07:13 -08:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json Revert "refactor(compiler-cli): remove deep imports from compiler-cli (#64732)" 2025-11-06 13:09:27 -08:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig.json feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT