From b2c29ec98471e2d1c195232d3b8ef5f9124f6d16 Mon Sep 17 00:00:00 2001 From: Rodrigo Yokota Date: Tue, 30 Jan 2024 10:05:05 -0300 Subject: [PATCH 1/2] fix(nextjs-mf): change runtimePlugin definition order --- packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts b/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts index 23f4b490463..39fd87f20b6 100644 --- a/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts +++ b/packages/nextjs-mf/src/plugins/NextFederationPlugin/index.ts @@ -134,9 +134,9 @@ export class NextFederationPlugin { remoteType: 'script', // @ts-ignore runtimePlugins: [ + require.resolve(path.join(__dirname, '../container/runtimePlugin')), //@ts-ignore ...(this._options.runtimePlugins || []), - require.resolve(path.join(__dirname, '../container/runtimePlugin')), ], exposes: { './noop': noop, From 30a6c3addd6cddd116a018ed478a7014800a6681 Mon Sep 17 00:00:00 2001 From: Rodrigo Yokota Date: Wed, 31 Jan 2024 20:25:45 -0300 Subject: [PATCH 2/2] chore: changeset --- .changeset/weak-baboons-think.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/weak-baboons-think.md diff --git a/.changeset/weak-baboons-think.md b/.changeset/weak-baboons-think.md new file mode 100644 index 00000000000..d4bd0bb680a --- /dev/null +++ b/.changeset/weak-baboons-think.md @@ -0,0 +1,5 @@ +--- +'@module-federation/nextjs-mf': patch +--- + +fix(nextjs-mf): errorLoadRemote hook not to be overridden