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
What is the problem: ./src/utils/index.jsx module is declared in src_helpers_index_js but required in src_comopnent_Button_js, so in runtime, it cannot find the module
Like I mentioned, this is a known issue and @sokra had fixed it in #11770. But he didn't handle for module federation case, because in this case, two federated modules ./RemoteApp and ./helpers are using the same runtime id
Bug report
What is the current behavior?
With a certain dependency graph, webpack module federation applications crash with error:
This is indeed a known bug and had been fixed, but it happens again with module federation #11770
Issue describe:
./src/utils/index.jsx
module is declared insrc_helpers_index_js
but required insrc_comopnent_Button_js
, so in runtime, it cannot find the moduleLike I mentioned, this is a known issue and @sokra had fixed it in #11770. But he didn't handle for module federation case, because in this case, two federated modules
./RemoteApp
and./helpers
are using the same runtime idIf the current behavior is a bug, please provide the steps to reproduce.
https://github.com/tqnghia1998/webpack-chunking-error-demo (latest webpack version, just yarn install, then yarn start)
What is the expected behavior?
No runtime errors,
./src/utils/index.jsx
should be initialized when loading RemoteAppOther relevant information:
Webpack version: 5.89.0
Node.js version: v18.12.1
Operating System: Mac 14.2.1
Additional tools: -
The text was updated successfully, but these errors were encountered: