react-buddy-ide-toolbox icon indicating copy to clipboard operation
react-buddy-ide-toolbox copied to clipboard

preview not work in WebStorm

Open perrywu1989 opened this issue 1 year ago • 6 comments

when i click component preview, it is stucked showing waiting for server...

WebStorm 2023.2.4

perrywu1989 avatar Nov 08 '23 05:11 perrywu1989

Same for WebStorm 2023.3.1

wenerme avatar Dec 15 '23 05:12 wenerme

I'm using PhpStorm 2023.3.4 and I am seeing this, too.

I am using Vite along with React, and when I try to preview a component, it just says "Waiting for dev server..." and sits there forever.

Accessing http://localhost:5173/ in the browser works just fine.

Does this require any additional setup to work with Vite?

NTICompass avatar Mar 04 '24 20:03 NTICompass

I can't get the plugin to work with Rider 2024.1.2, on a vite 5.2.11 project as well. Same issue - 'waiting for dev server'. @web-devel Any chances we could get some help on that?

karol-be avatar May 09 '24 21:05 karol-be

Preview seems to work if you explicitly specify a binding host for the dev server, in vite: server: { host: '127.0.0.1' } Is it possible that react buddy is forming an invalid url somewhere if this isn't explictly provided?

djpowell avatar May 21 '24 10:05 djpowell

Preview seems to work if you explicitly specify a binding host for the dev server, in vite: server: { host: '127.0.0.1' } Is it possible that react buddy is forming an invalid url somewhere if this isn't explictly provided?

Works, thanks @djpowell!

boldwade avatar May 31 '24 17:05 boldwade

Preview seems to work if you explicitly specify a binding host for the dev server, in vite:如果您明确为开发服务器指定绑定主机,则预览似乎可以工作: server: { host: '127.0.0.1' } Is it possible that react buddy is forming an invalid url somewhere if this isn't explictly provided?如果没有明确提供,React buddy 是否可能在某处形成无效的 url?

It works for me , Thanks.

My environment is macos 14.5 , WebStorm 2024.2.3, React Buddy 242.20224.155

iscomandev avatar Sep 28 '24 11:09 iscomandev

when i click component preview, it is stucked showing waiting for server...

WebStorm 2023.2.4

Preview seems to work if you explicitly specify a binding host for the dev server, in vite: server: { host: '127.0.0.1' } Is it possible that react buddy is forming an invalid url somewhere if this isn't explictly provided?

It works, but you need to configure development server in react buddy manually.

Hammad-Hassan61 avatar Dec 05 '24 15:12 Hammad-Hassan61