unplugin / unplugin-vue2-script-setup

💡 Bring `<script setup>` to Vue 2.
MIT License
599 stars 39 forks source link

类型“{}”上不存在属性“XXX”。ts(2339) #150

Closed 642661520 closed 2 years ago

642661520 commented 2 years ago

Describe the bug

只要使用了setup ,在 template 中 使用的数据会提示 类型“{}”上不存在属性“XXX”。ts(2339) image

Reproduction

### System Info ```Shell vsCode ``` ### Used Package Manager npm ### Validations - [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md) - [X] Read the [Contributing Guide](https://github.com/antfu/contribute). - [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. - [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. - [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Quan-HHH commented 1 year ago

How did you solve it? QAQ