-
-
Notifications
You must be signed in to change notification settings - Fork 173
undef
error in <script setup>
breaks HMR
#5
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
Comments
Hello @abitwhy. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
I tested with https://vite.new/vue but didn't happen. Would you write the steps to reproduce? |
@sapphi-red The reproduce steps were added in the top comment. |
Please write more concrete steps.
|
After more testing, I found that only no-undef error will case this bug. |
I was able to reproduce 👍 |
<script setup>
will break HRMundef
error in <script setup>
breaks HMR
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Any
undef
error in the<script setup>
will break the HMR. If auto save file is on, then entering any incomplete code will cause an error and break the HMR.Break means it no longer working, even if correct the code. And only fresh the page will make HMR work.
This happened only recently, and only happened in
<script setup>
.Reproduction
https://vite.new/vue
Reproduce Steps
src/App.vue
undef
error in<script setup>
(For example, write some characters in a new line)System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: