Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example 页面加载时控制台报错 #169

Closed
CHU295 opened this issue Nov 25, 2019 · 4 comments · Fixed by #269
Closed

example 页面加载时控制台报错 #169

CHU295 opened this issue Nov 25, 2019 · 4 comments · Fixed by #269

Comments

@CHU295
Copy link

CHU295 commented Nov 25, 2019

拉取最新代码后报错
VM18914:155036 WebSocket connection to 'ws://localhost:7099/sockjs-node/698/gxczzlrn/websocket' failed: Error during WebSocket handshake: Unexpected response code: 200

VM18914:154938 POST http://localhost:7099/sockjs-node/698/czcmewt2/xhr_streaming?t=1574654053469 404 (Not Found)

EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.

功能正常,在页面加载刷新时出现。
另外react16项目配置有问题,自定义配置中devServer open已经设置为false,但是在项目启动的时候会自动打开改服务网页

@kuitos
Copy link
Member

kuitos commented Nov 25, 2019

需要 create-react-app 支持 facebook/create-react-app#7750

@kuitos kuitos changed the title 页面加载时控制台报错 example 页面加载时控制台报错 Nov 26, 2019
@ChenYCL
Copy link

ChenYCL commented Apr 6, 2021

17react版本目前仍然有这个报错
image

@wangchun0020
Copy link

17react版本目前仍然有这个报错
image

有解决方案了吗

@ccysmd
Copy link

ccysmd commented Aug 25, 2021

change scripts ["start": "react-app-rewired start"] to ["start": "cross-env WDS_SOCKET_PORT=3000 react-app-rewired start"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants