-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Critical dependency warning in @module-federation/utilities due to dynamic import #2794
Comments
+1 |
I have added tempaory fix in my appllication configuration to reslove this issue. here the code that i have added in my webpack configuration plugin section new webpack.ContextReplacementPlugin(/@module-federation/utilities/, path.resolve(__dirname, 'node_modules/@module-federation/utilities/dist/index.cjs'), |
Dont use utilities, its dead, use the runtime package and loadRemote etc |
@ScriptedAlchemy could it be a good idea to add some workaround/examples for loading the exact module via |
the module federation website shows examples of the runtime. |
Stale issue message |
This library has now been removed |
Describe the bug
I encountered a critical dependency warning related to a dynamic import while using the @module-federation/utilities package. This warning appears during the build process with Webpack.
WARNING in ../node_modules/@module-federation/utilities/dist/index.cjs.js 804:52-62
Critical dependency: the request of a dependency is an expression
Reproduction
Install @module-federation/utilities in your project. Configure Webpack to build the project. Run the build process. Observe the warning in the console output.
Used Package Manager
yarn
System Info
Validations
The text was updated successfully, but these errors were encountered: