Skip to content
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

Modules get updated, but are not refreshed in the browser. SASS, on the other hand, does - different case though #866

Open
mbarzeev opened this issue Aug 21, 2024 · 0 comments

Comments

@mbarzeev
Copy link

Hi,
First of all, thanks for creating this project!

I know that this issue was discussed in several places, but the solutions offered there did not solve mine.
I'm talking about Modules which get updated, but are not refreshed in the browser. SASS, on the other hand, does. I know, a well known issue here.
It appears that I'm bumping into an issue which has to do with externalizing React and ReactDOM (among others, like Mobx and PropTypes). A few facts first:

  • The application is built with modules which are lazy loaded, and also MicroFrontends - all of which are using ths same externalized React and ReactDOM.
  • The Webpack configuration is comprised of multiple modules (entry points)
  • I cannot "don't externalize" since the other MicroFrontends rely on React and ReactDOM being available on the window.
  • Having the optimization.splitChunks as you have them in the sandbox (which, BTW, still has errors loading there) is not an option since it fails to load the chunks, and result in not loading the application.

The whole thing is really hard to debug... and sadly I cannot upload the entire configuration, but if there are sections of it you would like to inspect I will try to extract them and put them here.

Any idea how to by-pass this issue and have the refresh work?
Also, I didn't quite understand how the React devtool should help (can they, in this situation?)

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant