joshbolduc / vscode-story-explorer

Browse and preview Storybook stories inside VS Code
MIT License
29 stars 1 forks source link

127.0.0.1 vs localhost #1041

Open kvart714 opened 1 year ago

kvart714 commented 1 year ago

I don't know what changed: the behavior of the extension, of the storybook or some my PC settings But the extension stopped working at some point

After research I found that the extension is trying to open 127.0.0.1:6006 inside My storybook is deployed to localhost:6006 by default (127.0.0.1:6006 doesn't work) image

But if I run the storybook with the --host 127.0.0.1 arg, then everything works image

This is not a problem, but used to work without this argument

joshbolduc commented 1 year ago

Hmm, this is strange. I am not sure why the extension would try to use 127.0.0.1 since it's actually hardcoded to use localhost (as you noted in #833).

To confirm, this is the on-demand Storybook instance that the extension tries to launch? Do you have any extension-specific settings enabled in your user or workspace settings?