Skip to content

Fix failing build caused by concurrent access to externals metadata.#14

Merged
Aukevanoost merged 2 commits intonative-federation:mainfrom
fzankl:main
Feb 9, 2026
Merged

Fix failing build caused by concurrent access to externals metadata.#14
Aukevanoost merged 2 commits intonative-federation:mainfrom
fzankl:main

Conversation

@fzankl
Copy link
Copy Markdown

@fzankl fzankl commented Feb 6, 2026

Summary

The externals metadata are stored individually for each native federation build to prevent build errors.

Context

When running applications using e.g. concurrently "ng serve mfe1" "ng serve mfe2" "ng serve mfe3" "ng serve vnf-host" the host and all micro frontends are built and launched in parallel. Hence, externals metadata files are also processed in parallel.

Since the applications use the same dependency stack, different processes access the same files, which can result in empty files or exceptions such as EBUSY: resource busy or locked.

To avoid build errors, the externals metadata files should be processed and stored separately for each build.

For reference
angular-architects/module-federation-plugin/pull/1058

@@ -0,0 +1,14 @@
import { NormalizedFederationConfig } from '../config/federation-config';
import { logger } from './logger';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fix the imports? Thanks

Copy link
Copy Markdown
Contributor

@Aukevanoost Aukevanoost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff

@Aukevanoost Aukevanoost merged commit 48305a3 into native-federation:main Feb 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants