You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, folks. We recently merged the Unify PR in which introduces some important updates to our project, we still fixing some reports, you may already saw the following error with @swc/helpers when using @module-federation/node or @module-federation/nextjs-mf:
Error: Cannot find module '@swc/helpers/_/_interop_require_default'
[2] Require stack:
[2] - /nextjs-v12/node_modules/@module-federation/enhanced/src/index.js
[2] - /nextjs-v12/node_modules/@module-federation/nextjs-mf/src/plugins/NextFederationPlugin/next-fragments.js
[2] - /nextjs-v12/node_modules/@module-federation/nextjs-mf/src/plugins/NextFederationPlugin/index.js
[2] - /nextjs-v12/node_modules/@module-federation/nextjs-mf/src/index.js
[2] - /nextjs-v12/shop/next.config.js
[2] at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
[2] at mod._resolveFilename (/nextjs-v12/node_modules/next/dist/build/webpack/require-hook.js:27:32)
[2] at mod._resolveFilename (/nextjs-v12/node_modules/next/dist/build/webpack/require-hook.js:27:32)
[2] at Module._load (node:internal/modules/cjs/loader:922:27)
[2] at Module.require (node:internal/modules/cjs/loader:1143:19)
[2] at require (node:internal/modules/cjs/helpers:119:18)
[2] at Object.<anonymous> (/nextjs-v12/node_modules/@module-federation/enhanced/src/index.js:34:34)
[2] at Module._compile (node:internal/modules/cjs/loader:1256:14)
[2] at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
[2] at Module.load (node:internal/modules/cjs/loader:1119:32) {
[2] code: 'MODULE_NOT_FOUND',
[2] requireStack: [
[2] '/nextjs-v12/node_modules/@module-federation/enhanced/src/index.js',
[2] '/nextjs-v12/node_modules/@module-federation/nextjs-mf/src/plugins/NextFederationPlugin/next-fragments.js',
[2] '/nextjs-v12/node_modules/@module-federation/nextjs-mf/src/plugins/NextFederationPlugin/index.js',
[2] '/nextjs-v12/node_modules/@module-federation/nextjs-mf/src/index.js',
[2] '/nextjs-v12/shop/next.config.js'
[2] ]
[2] }
This is a known issue and we are working on it, you can track the progress here.
How to fix it
To fix the error, you need to install the @swc/helpers package manually, you can do it by running the following command:
npm install @swc/helpers
The content you are editing has changed. Please copy your edits and refresh the page.
Hello, folks. We recently merged the Unify PR in which introduces some important updates to our project, we still fixing some reports, you may already saw the following error with
@swc/helpers
when using@module-federation/node
or@module-federation/nextjs-mf
:This is a known issue and we are working on it, you can track the progress here.
How to fix it
To fix the error, you need to install the
@swc/helpers
package manually, you can do it by running the following command:Tasks
The text was updated successfully, but these errors were encountered: