Skip to content

defineProps导致热更新失效 #374

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

Closed
7 tasks done
songpeng154 opened this issue Mar 20, 2024 · 3 comments
Closed
7 tasks done

defineProps导致热更新失效 #374

songpeng154 opened this issue Mar 20, 2024 · 3 comments

Comments

@songpeng154
Copy link

songpeng154 commented Mar 20, 2024

Describe the bug

我使用 defineProps(),会导致当前组件热更新失败

Reproduction

https://stackblitz.com/edit/vitejs-vite-rckp9s?file=package.json,src%2FApp.vue,src%2Ftype.ts&terminal=dev

Steps to reproduce

当 defineProps 使用泛型的时候,你在当前组件的任何操作都会导致热更新失败,必须的重启项目,去掉泛型一切都正常

System Info

"dependencies": {
    "vue": "^3.4.21",
    "ant-design-vue": "^4.1.2"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^5.0.4",
    "typescript": "^5.2.2",
    "vite": "^5.1.6",
    "vue-tsc": "^2.0.6"
  }

Used Package Manager

npm

Logs

No response

Validations

Copy link

stackblitz bot commented Mar 20, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@sapphi-red sapphi-red transferred this issue from vitejs/vite Mar 20, 2024
@songpeng154
Copy link
Author

"@vitejs/plugin-vue": "^4.6.2", 这个版本不存在这个问题

@edison1105
Copy link
Member

duplicate of #428

@edison1105 edison1105 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2024
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

2 participants