redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

preview-docs reload is not working anymore

Open nbourguig opened this issue 4 years ago • 4 comments

Describe the bug Reloading browser is not working when openapi-cli is installed globally.

To Reproduce Steps to reproduce the behavior:

  1. Install openapi-cli globally
  2. Open any specs files using preview-docs command openapi preview-docs openapi.yaml
  3. Open the browser
  4. Change anything in the spec file
  5. Browser does not reload

Expected behavior The browser should reload content when the file is edited.

Logs Browser cannot load simplewebsocket.min.js and hot.js image

openapi-cli Version(s) 1.0.0-beta.80

Node.js Version(s) 16.13.2

Additional context After checking out, it seems that this recently introduced change is preventing the loading of the hot.js and simplewebsocket.min.js

Commenting out this specific code in the /lib folder resolves the issue.

nbourguig avatar Jan 28 '22 17:01 nbourguig

I'm seeing the same issue Screen Shot 2022-03-17 at 1 44 12 PM

CarltonHowell avatar Mar 17 '22 03:03 CarltonHowell

I'm seeing the same issue as well.

zeghong avatar Mar 26 '22 02:03 zeghong

Could only reproduce this with a published version of openapi-cli and not in local development environment.

tatomyr avatar Mar 29 '22 11:03 tatomyr

I have the same issue.

adamaltman avatar Apr 20 '22 22:04 adamaltman