Open OckhamRazor opened 3 years ago
+1 persistent cache is broken that way. I worked around by using static URL in development.
@OckhamRazor @frost555 is there any workaround to leverage persistent cache with module-federation in production mode? Thanks.
I also encountered this problem, have you solved it?
@AboyL Is there already a solution?
I'm also having this issue. When we deploy, remoteEntry.js is cached and will reference to federated modules that don't exist, giving a CORS error. I've tried Cache busting like suggested in this stackoverflow post, but that makes remoteEntry.js to return 404 not found.
synchronizing the webpack source version is sufficient to ensure consistency with the version used in the root directory webpack and avoid serialization cache not being able to correspond
You can look at the following comments, the root cause is because webpack-sources use different objects caused by the specific solution needs to be solved according to the actual situation. We use umi system and have rewritten this plug-in, which may not be applicable to you
Problem: When I set it up, I get an error.
Error log:
Thinking 🤔: I think it's because a new source has been replaced
afterafterCodeGeneration
. so can I modify it directly on the original source?