From 12e4b28ab31de9a5feea3718313fc9e66a74c4fb Mon Sep 17 00:00:00 2001 From: Mateo Tibaquira Date: Fri, 28 Jan 2022 11:35:16 -0500 Subject: [PATCH] Angular: retrieve version from the core package --- app/angular/src/server/framework-preset-angular-cli.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/angular/src/server/framework-preset-angular-cli.ts b/app/angular/src/server/framework-preset-angular-cli.ts index 2d7d6da3eb1c..ac12a2e022b8 100644 --- a/app/angular/src/server/framework-preset-angular-cli.ts +++ b/app/angular/src/server/framework-preset-angular-cli.ts @@ -23,7 +23,9 @@ export async function webpackFinal(baseConfig: webpack.Configuration, options: P return baseConfig; } - const angularCliVersion = await import('@angular/cli').then((m) => semver.coerce(m.VERSION.full)); + const angularCliVersion = await import('@angular/core').then((m) => + semver.coerce(m.VERSION.full) + ); /** * Ordered array to use the specific getWebpackConfig according to some condition like angular-cli version