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

[React Refresh] Failed to set up the socket connection. #156

Open
sakibul-islam opened this issue Feb 16, 2023 · 9 comments
Open

[React Refresh] Failed to set up the socket connection. #156

sakibul-islam opened this issue Feb 16, 2023 · 9 comments

Comments

@sakibul-islam
Copy link

sakibul-islam commented Feb 16, 2023

When I first open the popup/options page, I get this error. But the auto-refresh works fine.

image

@vu9huy
Copy link

vu9huy commented Feb 16, 2023

I got same problem

@UchennaOkafor
Copy link

How did you guys fix this problem?

@osarhan
Copy link

osarhan commented Feb 26, 2023

I got the same problem. havent solved it. If someone can respond with their solution, that would be great

@udaya28
Copy link

udaya28 commented Feb 28, 2023

I got the same problem.. any fixes?

@UchennaOkafor
Copy link

I just ended up using this template
https://github.com/guocaoyi/create-chrome-ext

Specifically their vite react typescript template
https://github.com/guocaoyi/create-chrome-ext/tree/main/template-react-ts

It's more lightweight, has less bugs, less bloat and works better.
@udaya28 @osarhan

@Hawstein
Copy link

Hawstein commented Mar 2, 2023

Encounter the same problem.

Just head to file webpack.config.js and replace the following line

isDevelopment && new ReactRefreshWebpackPlugin(),

to

isDevelopment && new ReactRefreshWebpackPlugin({ overlay: false }),

This will ignore the error overlay integration and fix the warning.

@sakibul-islam
Copy link
Author

Thanks @Hawstein, it worked.

@WynMars
Copy link

WynMars commented Mar 18, 2023

use "npm run build" instead, anyway, I still encounter other problems and decide to go with other lightweight template

JasonGrass added a commit to JasonGrass/auto-extension-manager that referenced this issue May 31, 2023
@wilmoore
Copy link

use "npm run build" instead, anyway, I still encounter other problems and decide to go with other lightweight template

@WynMars Curious which one you ended up going with?

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

No branches or pull requests

8 participants