-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
A error [plugin:vite:vue-jsx] unknown: Unexpected token
occurs during hot reload.
#423
Comments
[plugin:vite:vue-jsx] unknown: Unexpected token (4:12)
occurs during hot reload.[plugin:vite:vue-jsx] unknown: Unexpected token
occurs during hot reload.
same problem |
Same issue. It's not just |
您好,泡泡龙已收到您的邮件。
|
@sgpinkus |
@songpeng154 |
@edison1105 之前创建了,然后被关闭了,组件太复杂了我这边没法提供复现链接,不好意思。 |
没有复现就很难处理了。 |
|
@edison1105 好像不报错了,我调试的过程中没有出现过热更新错误了 |
@songpeng154 |
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
Describe
This commit introduced a bug: c891652
When modifying a file containing a type used by
defineProps
, it throws a[plugin:vite:vue-jsx] unknown: Unexpected token (4:12)
error.Analyse
The key line of code should be this:
vite-plugin-vue/packages/plugin-vue/src/handleHotUpdate.ts
Lines 344 to 349 in 7fc7994
It cleared the cache of the
<script>
block, but only reloaded the<script>
block itself without reloading the entire Vue file. As a result, the load method couldn't read the<script>
block.Reproduction
https://github.com/ipcjs/vite-plugin-vue-type-dep-change-bug
Steps to reproduce
pnpm dev
Position.toString()
methodSystem Info
Used Package Manager
pnpm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: