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

[@vitejs/plugin-react-refresh] Could not hot update #4384

Closed
6 tasks done
fengxinming opened this issue Jul 24, 2021 · 4 comments
Closed
6 tasks done

[@vitejs/plugin-react-refresh] Could not hot update #4384

fengxinming opened this issue Jul 24, 2021 · 4 comments

Comments

@fengxinming
Copy link

fengxinming commented Jul 24, 2021

Describe the bug

When I change react componsts, expect to current page on browser is updated, it print [vite] hot updated: /src/pages/login/index.jsx on console, but nothing happens.

Reproduction

https://github.com/fengxinming/vite-plugins/tree/main/examples/demo

System Info

Mac and win7

[email protected]

Used Package Manager

pnpm

Logs

No response

Validations

@oeb25
Copy link

oeb25 commented Aug 1, 2021

This might be related to #4142

@fengxinming
Copy link
Author

@oeb25 it is different from #4142 because I use external React. if he did not use arrow function to define a React component, that App component would hot update.

@haoqunjiang
Copy link
Member

haoqunjiang commented Aug 2, 2021

Hi, thanks for your report.
Would you please reduce your issue to a minimal reproducible example?
The linked repository contains too many custom plugins that it's hard for us to find out which package causes the issue.

@github-actions
Copy link

Hello @fengxinming. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants