E470 withDefaults' first argument must be a defineProps call. · Issue #635 · vue-macros/vue-macros · GitHub
[go: up one dir, main page]

Skip to content

withDefaults' first argument must be a defineProps call. #635

@huxinhai

Description

@huxinhai

Describe the bug

使用definePropsRefs的时候在第一次的时候是没有问题的,但是修改了里面的内容触发了vite的热更新的时候会出现withDefaults' first argument must be a defineProps call.
微信截图_20240312102948

但是我重新是刷新这个界面的时候又好了,但是重新修改内容还是会出现这个问题 我尝试了四台电脑都是这样的问题

Reproduction

https://github.com/huxinhai/vue-macros-main

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
    Memory: 16.08 GB / 31.96 GB
  Binaries:
    Node: 20.8.0 - ~\AppData\Local\pnpm\node.EXE
    pnpm: 8.15.3 - ~\AppData\Local\pnpm\npm.CMD
    vue: 3.4.21
    unplugin-vue-macros: 2.7.10
    vite: 5.1.5
    @vitejs/plugin-vue 5.0.4
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (110.0.1587.57)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No p 32EF rojects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0