diff --git a/packages/nx/src/project-graph/plugins/get-plugins.ts b/packages/nx/src/project-graph/plugins/get-plugins.ts index 1a245d318d598..2ad348a2ff28d 100644 --- a/packages/nx/src/project-graph/plugins/get-plugins.ts +++ b/packages/nx/src/project-graph/plugins/get-plugins.ts @@ -24,6 +24,7 @@ export async function getPlugins() { // Cleanup current plugins before loading new ones if (cleanup) { + pendingPluginsPromise = undefined; cleanup(); } @@ -50,6 +51,7 @@ export async function getOnlyDefaultPlugins() { // Cleanup current plugins before loading new ones if (cleanupDefaultPlugins) { + pendingDefaultPluginPromise = undefined; cleanupDefaultPlugins(); }