From ba6b1fdd99f87ba4757687fb6017aaa511be6e71 Mon Sep 17 00:00:00 2001 From: Gilad Shoham Date: Sun, 23 Jun 2024 23:44:26 +0300 Subject: [PATCH] fix(install) - fix install with custom old envs (with getDependencies func) --- scopes/workspace/install/install.main.runtime.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scopes/workspace/install/install.main.runtime.ts b/scopes/workspace/install/install.main.runtime.ts index b7224f1087d9..3a3953aa850d 100644 --- a/scopes/workspace/install/install.main.runtime.ts +++ b/scopes/workspace/install/install.main.runtime.ts @@ -972,7 +972,12 @@ export class InstallMain { private async getComponentsDirectory(ids: ComponentID[]): Promise> { const components = ids.length ? await this.workspace.getMany(ids) - : await this.workspace.list(undefined, { loadSeedersAsAspects: false }); + : await this.workspace.list(undefined, { + loadSeedersAsAspects: false, + // executeLoadSlot: true, + // We need to load extension here to make sure we load the components dependencies correctly for install + loadExtensions: true, + }); return ComponentMap.as(components, (component) => this.workspace.componentDir(component.id)); }