chrome-extension-boilerplate-react icon indicating copy to clipboard operation
chrome-extension-boilerplate-react copied to clipboard

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

Open sakibul-islam opened this issue 2 years ago • 9 comments

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

image

sakibul-islam avatar Feb 16 '23 06:02 sakibul-islam

I got same problem

vu9huy avatar Feb 16 '23 12:02 vu9huy

How did you guys fix this problem?

UchennaOkafor avatar Feb 19 '23 01:02 UchennaOkafor

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

osarhan avatar Feb 26 '23 18:02 osarhan

I got the same problem.. any fixes?

udaya28 avatar Feb 28 '23 16:02 udaya28

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

UchennaOkafor avatar Feb 28 '23 17:02 UchennaOkafor

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.

Hawstein avatar Mar 02 '23 06:03 Hawstein

Thanks @Hawstein, it worked.

sakibul-islam avatar Mar 02 '23 06:03 sakibul-islam

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

WynMars avatar Mar 18 '23 15:03 WynMars

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?

wilmoore avatar Aug 22 '24 08:08 wilmoore