Skip to content

Fixes #1293 - Webpack doesn't seem to be reloading the frontend #1294

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

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

jonespm
Copy link
Member

@jonespm jonespm commented Aug 4, 2021

Is anyone else on any platform seeing this issue?

Maybe it's just because I have "Use gRPC FUSE" unchecked? I'll try to restart with that checked.

Okay it's only seems like this is an issue if that option is unchecked.

@jonespm
Copy link
Member Author

jonespm commented Aug 4, 2021

Some of these ideas seemed to be included in #996 but that wasn't ever merged.

@jonespm jonespm requested review from ssciolla and pushyamig August 4, 2021 20:38
@ssciolla
Copy link
Contributor

ssciolla commented Aug 9, 2021

@jonespm, why is this necessary if you just needed to check the "Use gRPC FUSE for file sharing" option? Is that not something we should be doing?

Maybe these changes are good for other reasons, but if the option change is all that's needed to fix webpack, I'm thinking this PR and the issue should be renamed.

@jonespm
Copy link
Member Author

jonespm commented Aug 9, 2021

I'd mentioned in the ticket that unchecking this option gets the builds and startup to go about twice as fast. It seems like there's still a performance issue with Docker on OSX and at least going back with these options fixes it.

I'm also not 100% sure if this is an issue with Windows or not. I was hearing from Daniel Zhang that his webpack wasn't reloading on Windows in the Canvas App Explorer project. It might just be related to the watch options there, as I'm seeing these volume options are only applicable to OSX without gRPC.

@pushyamig
Copy link
Contributor

@jonespm I think in past i had problem when Use gRPC FUSE was checked, but not anymore(maybe after upgrade of Docker version). Now I have that checked and I didn't even applied changes from this PR and I can see webpack is creating a new main-xx.js bundle each time.

I will approve this request since this is fixing problem on Windows and is working for Mac.

@ssciolla
Copy link
Contributor

ssciolla commented Sep 9, 2021

@pushyamig, did you test this? If so, can you approve?

@jonespm
Copy link
Member Author

jonespm commented Sep 9, 2021

Thanks! I was going to do a small fix and ensure the watchOptions was only set when development was enabled. I'm not entirely sure why I even had to add that to get it working either.

Is it already setting watch: true in dev and watch: false in prod? Then I guess it's all set as watchOptions don't matter if it's false.

https://webpack.js.org/configuration/watch/

@jonespm
Copy link
Member Author

jonespm commented Sep 9, 2021

Okay looks like the webpack_watcher container locally is running watch explicitly. So this should be fine. Thanks for checking!

@jonespm jonespm merged commit 6e53ca6 into tl-its-umich-edu:master Sep 9, 2021
@jonespm jonespm deleted the issue_1293 branch September 9, 2021 16:29
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

Successfully merging this pull request may close these issues.

Webpack doesn't seem to be live reloading the frontend anymore on OSX with certain options
3 participants