Skip to content

Commit 235e85a

Browse files
fix(nextjs-mf): correct path to next-flight-loader
Fixed NextFederationPlugin to use correct path '../../loaders/next-flight-loader' instead of '../../patches/next-flight-loader' since the patches directory doesn't exist. This resolves module loading errors for Next.js 15+ apps. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ececf1d commit 235e85a

File tree

1 file changed

+1
-1
lines changed
  • packages/nextjs-mf/src/plugins/NextFederationPlugin

1 file changed

+1
-1
lines changed

packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class NextFederationPlugin {
7474
compiler.options.resolveLoader.alias || {};
7575
// @ts-ignore
7676
compiler.options.resolveLoader.alias['next-flight-loader'] =
77-
require.resolve('../../patches/next-flight-loader');
77+
require.resolve('../../loaders/next-flight-loader');
7878
}
7979

8080
process.env['FEDERATION_WEBPACK_PATH'] =

0 commit comments

Comments
 (0)