Skip to content

chore(module-federation): re-enable webpack-based react e2e tests (webpack 5.107.1 fix is live)#35764

Merged
FrozenPandaz merged 1 commit into
masterfrom
reenable-module-federation-e2e
May 21, 2026
Merged

chore(module-federation): re-enable webpack-based react e2e tests (webpack 5.107.1 fix is live)#35764
FrozenPandaz merged 1 commit into
masterfrom
reenable-module-federation-e2e

Conversation

@FrozenPandaz

Copy link
Copy Markdown
Contributor

Current Behavior

PR #35753 skipped 9 webpack-based React Module Federation e2e suites because webpack 5.107.0 (published 2026-05-20) reorganized its lib/ directory and removed lib/ModuleNotFoundError.js, which @module-federation/enhanced deep-imports. Every webpack-based MF build/serve in the affected suites was failing with Cannot find module 'webpack/lib/ModuleNotFoundError'.

Expected Behavior

webpack 5.107.1 (published 2026-05-21) restored the path as a backward-compat shim — lib/ModuleNotFoundError.js now re-exports from ./errors/ModuleNotFoundError. Verified locally that all 21 webpack/lib/* paths used by @module-federation/enhanced 2.4.0 / 2.5.0 now resolve in 5.107.1.

This PR removes the describe.skip + TODO + // eslint-disable-next-line jest/no-disabled-tests lines from the 9 affected files, re-enabling:

  • e2e/react/src/module-federation/core-webpack-basic-host-remote-generation.test.ts
  • e2e/react/src/module-federation/core-webpack-basic-playwright.test.ts
  • e2e/react/src/module-federation/core-webpack-name-and-root.test.ts
  • e2e/react/src/module-federation/core-webpack-query-params.test.ts
  • e2e/react/src/module-federation/core-webpack-ssr.test.ts
  • e2e/react/src/module-federation/dynamic-federation.webpack.test.ts
  • e2e/react/src/module-federation/federate-module.webpack.test.ts
  • e2e/react/src/module-federation/independent-deployability.webpack.test.ts
  • e2e/react/src/module-federation/misc-rspack-interoperability.test.ts

Related Issue(s)

Reverts the skip from #35753. Upstream:

… that webpack 5.107.1 is out

Reverts the skip from #35753. webpack 5.107.1 (published 2026-05-21) re-exports
`lib/ModuleNotFoundError` as a backward-compat shim, restoring the deep-import
path that `@module-federation/enhanced` relies on. All 21 webpack/lib/* paths
needed by @module-federation/enhanced 2.4.0 / 2.5.0 now resolve.

Refs:
- webpack/webpack#20988 (shim, merged)
- webpack/webpack#20989 (5.107.1 release, merged)
@FrozenPandaz FrozenPandaz requested a review from a team as a code owner May 21, 2026 17:59
@FrozenPandaz FrozenPandaz requested a review from JamesHenry May 21, 2026 17:59
@netlify

netlify Bot commented May 21, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 83c8214
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6a0f47ebc0b69100082de5a6
😎 Deploy Preview https://deploy-preview-35764--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented May 21, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 83c8214
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6a0f47eb8aa9df00085f9669
😎 Deploy Preview https://deploy-preview-35764--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 83c8214

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 17m 35s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 13s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 15s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 4s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-21 18:20:48 UTC

@FrozenPandaz FrozenPandaz merged commit b6858ba into master May 21, 2026
26 checks passed
@FrozenPandaz FrozenPandaz deleted the reenable-module-federation-e2e branch May 21, 2026 19:03
FrozenPandaz added a commit that referenced this pull request May 22, 2026
…bpack 5.107.1 fix is live) (#35764)

## Current Behavior

PR #35753 skipped 9 webpack-based React Module Federation e2e suites
because webpack 5.107.0 (published 2026-05-20) reorganized its `lib/`
directory and removed `lib/ModuleNotFoundError.js`, which
`@module-federation/enhanced` deep-imports. Every webpack-based MF
build/serve in the affected suites was failing with `Cannot find module
'webpack/lib/ModuleNotFoundError'`.

## Expected Behavior

webpack 5.107.1 (published 2026-05-21) restored the path as a
backward-compat shim — `lib/ModuleNotFoundError.js` now re-exports from
`./errors/ModuleNotFoundError`. Verified locally that all 21
`webpack/lib/*` paths used by `@module-federation/enhanced` 2.4.0 /
2.5.0 now resolve in 5.107.1.

This PR removes the `describe.skip` + TODO + `//
eslint-disable-next-line jest/no-disabled-tests` lines from the 9
affected files, re-enabling:

-
`e2e/react/src/module-federation/core-webpack-basic-host-remote-generation.test.ts`
-
`e2e/react/src/module-federation/core-webpack-basic-playwright.test.ts`
- `e2e/react/src/module-federation/core-webpack-name-and-root.test.ts`
- `e2e/react/src/module-federation/core-webpack-query-params.test.ts`
- `e2e/react/src/module-federation/core-webpack-ssr.test.ts`
- `e2e/react/src/module-federation/dynamic-federation.webpack.test.ts`
- `e2e/react/src/module-federation/federate-module.webpack.test.ts`
-
`e2e/react/src/module-federation/independent-deployability.webpack.test.ts`
- `e2e/react/src/module-federation/misc-rspack-interoperability.test.ts`

## Related Issue(s)

Reverts the skip from #35753. Upstream:
- webpack/webpack#20988 (compat shim, merged)
- webpack/webpack#20989 (webpack 5.107.1
release, merged)

(cherry picked from commit b6858ba)
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants