chrome-extension-boilerplate-react
chrome-extension-boilerplate-react copied to clipboard
[React Refresh] Failed to set up the socket connection.
When I first open the popup/options page, I get this error. But the auto-refresh works fine.
I got same problem
How did you guys fix this problem?
I got the same problem. havent solved it. If someone can respond with their solution, that would be great
I got the same problem.. any fixes?
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
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.
Thanks @Hawstein, it worked.
use "npm run build" instead, anyway, I still encounter other problems and decide to go with other lightweight template
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?