-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use your plugin!! #2
Comments
hey @rustam-gasymov thanks, it is not yet publish because its gona be part of the RC for Module federation under the https://github.com/module-federation/enhanced i am in touch with zack thru this issue module-federation/enhanced#5 to see if we can publihs as soon as possible |
@rustam-gasymov now you can install, look here https://github.com/schirrel/ModuleFederationEnhancedPlugin/pkgs/npm/module-federation-enhanced-plugin |
hi, thanks a lot, but I cannt open, its appear me page not found "404" |
@rustam-gasymov thanks for the patience, i had a couple of troubles. |
Hi Has this been merged to make it part of module-federation ? |
I am still getting |
I am facing the same issue as you here module-federation/module-federation-examples#1323 |
Hi @aditya-agarwal sadly not yet merged to part of the webpack module federation itself, it must be used as stated in here:https://github.com/schirrel/ModuleFederationEnhancedPlugin#usage Did you import it as |
Okay i was able to resolve the undefined error. It seems like there are some typos in the README file. Also i had the copy pasta error :). There is a typo in the spelling of But even after fixing those i am getting This is my setup
Even tried |
Hey @aditya-agarwal thanks, indeed i had some worngs on my readme that i am fixing as i wam having time, sadly i had these two mistages. for the remote maps to be usefull use the approach described on here : https://github.com/schirrel/ModuleFederationEnhancedPlugin#remotes-url-map
For the |
Got it and Thanks for your response! Actually I am looking to use the
and then do Is that even possible? Like to know what modules the remote is exposing at runtime? |
you want to your child to get the module map from the shell app? |
If by shell app you mean the app hosting the modules then yes. So just to be clear I have App-1 which is exposing two modules like:
and i have App-2 which is using these modules from App-1
Then in App-2 can I do |
Hi @schirrel would you know if what i am looking for in my last comment makes sense ? |
hey @aditya-agarwal i got it now. new ModuleFederationEnhancedPlugin({
name: 'elements',
filename: 'remoteEntry.js',
exposes: {
'./modules1': './module1.js',
'./modules2': './module2.js',
}
}) The in App 2 you dont need to change nothing, and then Does it show up on search? |
Okay I got
Error is :
|
@aditya-agarwal Sadly the
|
Got it. Thanks that works! Looking forward to when this gets merged to webpack |
Hi @schirrel Maybe I missing something here but in
So if i am importing something in a hardcoded way before using the loadComponent() method it works. But if i just call the loadComponent() method with the params Do i need to import the container in some other way? |
hi @aditya-agarwal sorry for the huge delay. |
Hi @schirrel I got it to work thanks! Running into a separate issue and wondering if you had any insights. How do i bundle static images with module federation? So I have an application that I am trying to expose thru module federation that has some static images under Would you know if there is certain configuration for this. Thanks! |
@aditya-agarwal sadly i am current having the same trouble. But one thing that i know that this may happen according to the way the image is being used. LIke ir you are importing or using at beigin of the figure the name './' , this may lead to usage |
Hi, i want to try your plugin, but i cannt install him
I get this error
error Command "@module-federation/ModuleFederationEnhacedPlugin" not found.
The text was updated successfully, but these errors were encountered: