-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Backend Integration multiple child component hmr failed (PHP) #9700
Comments
Hello @SouthLink. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
I update a Vite plugin to solve this problem |
That is one of the intended ways to make HMR work with backend integration. |
I found that HMR in the HTML file is success, but HMR in the PHP file fails. |
Ah, I understand what you were saying about. This was because you were importing import RefreshRuntime from 'http://localhost:3009/@react-refresh' This should be importing Related issue: #5656 |
Describe the bug
The hmr failure was encountered in the back-end(PHP) integrated multi-page mode.
everything worked fine when a single component was introduced
The latest update..
Details please refer to the smallest copy, when I use to start the project with http://localhost:3009/dist/index.html access, HMR is normal,By introducing father http://localhost:3009/dist/index.php PHP file parent components can do normal HMR, child components HMR fails
I think it's because PHP files don't support refreshing
Because my current project is very old, PHP version 5.6, and does not use the Laravel framework
What should I do to use hot update mode normally
Reproduction
minimal reproducible example
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: