From 278d79c6afb8e4b35277caef78d8580292d0de79 Mon Sep 17 00:00:00 2001 From: Adam Buckingham Date: Tue, 21 May 2024 10:01:39 -0400 Subject: [PATCH] Fixing angular package building with zone.js 0.14.0. See https://stackoverflow.com/questions/77469988/error-module-not-found-error-package-path-dist-zone-is-not-exported-from-pa --- angular.json | 2 +- src/polyfills.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 417c0704..e607cc9f 100644 --- a/angular.json +++ b/angular.json @@ -19,7 +19,7 @@ "index": "src/index.html", "main": "src/main.ts", "tsConfig": "src/tsconfig.app.json", - "polyfills": "src/polyfills.ts", + "polyfills": ["zone.js", "zone.js/testing"], "assets": [ "src/assets", "src/favicon.ico", diff --git a/src/polyfills.ts b/src/polyfills.ts index a89e9d53..0d813bcc 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -62,8 +62,9 @@ import 'core-js/es/reflect'; * Zone JS is required by Angular itself. */ (window as any).__Zone_enable_cross_context_check = true; -import 'zone.js/dist/zone'; // Included with Angular CLI. - +// Included with Angular CLI. +import 'zone.js'; +import 'zone.js/testing'; /***************************************************************************************************