webpack module federation issue
Budget ₹600-1500 INR
Job Description:
My microfrontend react application is created using Nx Tool.
Below was my webpack config & when starting the app, I'm getting error that
TypeError: fn is not a function
while loading "./Module" from 8640
const { ModuleFederationPlugin } = require('webpack').container;
const nrwlConfig = require('@nrwl/react/plugins/[login to view URL]');
[login to view URL] = (config, context) => {
nrwlConfig(config);
return {
...config,
plugins: [
...[login to view URL],
new ModuleFederationPlugin({
name: 'cart',
filename: '[login to view URL]',
exposes: {
'./Module': './src/[login to view URL]',
},
}),
],
};
};
Things I had tried:
There is a description in the webpack doc, but I wasnt able to understand what needs to be done.
Steps to replicate:
Code exists here: [login to view URL] or get from GIT:[login to view URL]
Do npm install
Do npm run start
Open http://localhost:4200/cart with dev console open
Files to check:
apps\cart\[login to view URL]
4 freelancers are bidding on average ₹2263 for this job
Hi Greetings! I am available right now for the project discussion and can start the project on an immediate basis. I have understood your project requirement I have7++ experience in design and development. I can ha More