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
Hi! I'm trying to make the plugin work with WP5 Module Federation but I get the following error:
「wdm」: TypeError: Cannot read property 'includes' of undefined
at /Users/mmmm/code/mfe-material/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/index.js:105:27
at Array.findIndex (<anonymous>)
at /Users/mmmm/code/mfe-material/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/index.js:104:50
at Hook.eval [as callAsync] (eval at create (/Users/mmmm/code/mfe-material/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:97:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/mmmm/code/mfe-material/node_modules/tapable/lib/Hook.js:18:14)
at /Users/mmmm/code/mfe-material/node_modules/webpack/lib/Compiler.js:1081:20
at Hook.eval [as callAsync] (eval at create (/Users/mmmm/code/mfe-material/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/mmmm/code/mfe-material/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/Users/mmmm/code/mfe-material/node_modules/webpack/lib/Compiler.js:1071:28)
at /Users/mmmm/code/mfe-material/node_modules/webpack/lib/Watching.js:188:19
The error goes away when I comment exposed module:
// webpack.config.jsplugins: [newModuleFederationPlugin({name: '_main',filename: 'remoteEntry.js',exposes: {'./App': './src/App.js',// comment this line to make the error go away},}),newHtmlWebpackPlugin({template: 'src/index.html',}),newReactRefreshWebpackPlugin(),],
The text was updated successfully, but these errors were encountered:
Hi! I'm trying to make the plugin work with WP5 Module Federation but I get the following error:
I've created a repo with reproduction: https://github.com/mlshv/mfe-react-refresh-bug
The error goes away when I comment exposed module:
The text was updated successfully, but these errors were encountered: