Sublime Forum

Source code saved by sublime 3 didn't notice webpack dev server to hot reload

#1

Hello to everyone. I’m currently using sublime 3 as source code editor on max os. Recently I found source file modified by sublime won’t cause webpack dev server to hot reload. I try to update file content via vim and I see webpack dev server HMR works fine. So I guess maybe the problem is on sublime side. This happened recently since I tried to open another project folder. I searched on internet see someone said i should turn atomic_save off. I did so but seems like it’s not helping. my setting as below
{
“atomic_save”: false,
“color_scheme”: “Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme”,
“font_size”: 14,
“ignored_packages”:
[
“JavaScript”,
“Vintage”
],
“theme”: “Oceanic Next.sublime-theme”
}

Is there someone facing the same issue as me? Do we have a workaround :slight_smile:

0 Likes

#2

File modified by VIM won’t cause HMR too. Looks like something going wrong with mac os. Thanks anyway. Closing this topic :slight_smile:

1 Like

#3

It’s weird that I didn’t change anything in sublime. And wackpack dev server HMR works now. During investigating the issue period. I tried many solution but no help. Like re-install node_modules dependency via npm(or yarn), Check the version of webpack and watchpack. I have several projects in local environment with similar build dependency. All other works fine but only one fail. I tried to copy node_modules folder from other project to the malfunction one. But it’s just not working under this project folder.
Last night, when I feel like to give up. I found webpack dev server HMR starts to work. But I didn’t know where goes wrong. Seems like it’s none sublime related. none build environment related. The issue gone just no reason. Any way thanks for all your times to read my poor english. :slight_smile:

Will post the root cause if I found it.

1 Like