angular/packages
Paul Gschwendtner d4d76ead80 fix(compiler-cli): do not fail fatal when references to non-existent module are discovered (#58515)
Currently when application source code references e.g. an NgModule that
points to references that aren't available, the compiler will break at
runtime without any actionable/reasonable error.

This could happen for example when a library is referenced in code, but
the library is simply not available in the `node_modules`. Clearly,
TypeScript would issue import diagnostics here, but the Angular compiler
shouldn't break fatally. This is useful for migrations which may run
against projects which aren't fully compilable. The compiler handles
this fine in all cases, except when processing `.d.ts` currently... and
the runtime exception invalides all other information of the program
etc.

This commit fixes this by degrading such unexpected cases for `.d.ts`
metadata reading to be handled gracefully. This matches existing logic
where the `.d.ts` doesn't necessarily match the "expecation"/"expected
format".

The worst case is that the Angular compiler will not have type
information for some directives of e.g. a library that just isn't
installed in local `node_modules`; compared to magical errors and
unexpected runtime behavior.

PR Close #58515
2024-11-06 13:04:22 +01:00
..
animations refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
bazel build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
benchpress refactor(platform-server): Add an ssr benchmark setup. (#57647) 2024-10-04 10:45:22 -07:00
common refactor: add @__PURE__ next to @pureOrBreakMyCode for improved bundler compatibility (#58297) 2024-10-28 12:26:06 -07:00
compiler refactor(compiler): trigger hmr load on initialization (#58465) 2024-11-01 19:14:16 +00:00
compiler-cli fix(compiler-cli): do not fail fatal when references to non-existent module are discovered (#58515) 2024-11-06 13:04:22 +01:00
core fix(migrations): properly bundle shared compiler code into migrations (#58515) 2024-11-06 13:04:22 +01:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
examples build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
forms build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
language-service refactor(language-service): update code fix for unused imports (#58468) 2024-11-01 14:33:56 +00:00
localize build: update babel dependencies (#58499) 2024-11-06 06:59:44 +01:00
misc/angular-in-memory-web-api refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
platform-browser fix(platform-browser): correctly add external stylesheets to ShadowDOM components (#58482) 2024-11-05 11:33:17 +01:00
platform-browser-dynamic refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
platform-server refactor(core): introduce ngServerMode as global (#58386) 2024-10-30 10:13:28 -07:00
private/testing refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
router fix(router): remove setter for injector on OutletContext (#58343) 2024-10-24 16:41:04 -07:00
service-worker build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
upgrade refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
zone.js refactor(zone.js): Change the type of _taskCounts to an IndexSignature that can have keys (#51739) 2024-11-01 15:44:09 +00:00
BUILD.bazel refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
circular-deps-test.conf.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02: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 build: update licence date. (#55129) 2024-04-08 11:31:12 -07:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json feat(language-service): add code reactoring action to migrate @Input to signal-input (#57214) 2024-08-29 07:50:41 -07:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02: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