doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.55k stars 1.46k forks source link

Hot reloading not working #1661

Open grug opened 2 years ago

grug commented 2 years ago

Bug Report

Describe the bug

Currently, with the latest version of Docz, hot reloading is not working at all.

To Reproduce

Create a new Docz project, load it up, make a file change and observe that the browser doesn't refresh with updated content.

Expected behavior

When one makes file changes, hot reloading causes the browser to refresh with new content.

Environment

tannerntannern commented 2 years ago

I believe I'm having the same issue with macOS, same Docz version, and Node 14.18.3. From the browser console it appears that changes are detected, but the components aren't updating visually. Sample console output:

[HMR] connected                                                           client.js:241
[HMR] bundle rebuilding                                                   client.js:250
[HMR] bundle rebuilt in 428ms                                             process-update.js:51
[HMR] Checking for updates on the server...                               process-update.js:125
[HMR] Updated modules:                                                    process-update.js:127
[HMR]  - ../src/component-docs/OpenApiForm.mdx                            process-update.js:127
[HMR]  - ./.cache/_this_is_virtual_fs_path_/$virtual/sync-requires.js     process-update.js:132
[HMR] App is up to date.