Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When Nuxt3 use defineProp, vue-tsc gets a type error #884

@Soya-xy

Description

@Soya-xy

Describe the bug

When nuxt3 use defineProp, vue-tsc gets a type error, This problem only occurs in Nuxt,
QQ_1736401813188

Reproduction

https://github.com/Soya-xy/macros-nuxt.git

System Info

System:
    OS: macOS 15.3
    CPU: (8) arm64 Apple M1 Pro
    Memory: 135.23 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.12.0 - ~/.local/state/fnm_multishells/83291_1736400856756/bin/node
    npm: 10.9.0 - ~/.local/state/fnm_multishells/83291_1736400856756/bin/npm
    pnpm: 9.9.0 - ~/Library/pnpm/pnpm
    bun: 1.0.7 - ~/.bun/bin/bun
  Browsers:
    Chrome: 131.0.6778.264
    Edge: 131.0.2903.99
    Safari: 18.3

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions