Skip to content
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

defineSlots: use Short Syntax in vscode(Volar2+), template slot type is never. #639

Closed
5 tasks done
warmthsea opened this issue Mar 14, 2024 · 4 comments
Closed
5 tasks done

Comments

@warmthsea
Copy link

warmthsea commented Mar 14, 2024

Describe the bug

https://vue-macros.dev/macros/define-slots.html


Short Syntax:template slot type is never.

image


Full Syntax (Official Version): type is string, normal.

image


image

tsconfig.json vueCompilerOptions add "target 3", template error, see gif ↓

screenshots

Reproduction

https://github.com/warmthsea/test-volar2--defineSlots?tab=readme-ov-file

System Info

vscode: version last
volar(Vue-Official): v2.0.6

@vue-macros/volar: "^0.18.11",
"unplugin-vue-macros": "^2.7.10",

<hr />

System:
    OS: Windows 11 10.0.22621
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
    Memory: 13.47 GB / 31.70 GB
  Binaries:
    Node: 18.17.0 - R:\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.6.7 - R:\nodejs\npm.CMD
    pnpm: 8.15.4 - W:\warmthsea\test-volar2--defineSlots\node_modules\.bin\pnpm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.80)
    Internet Explorer: 11.0.22621.1

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.
@warmthsea
Copy link
Author

This comment was marked as off-topic.

@sxzz
Copy link
Member

sxzz commented Mar 14, 2024

As docs mentioned https://vue-macros.dev/guide/getting-started.html

❌ Considering that v2 is not yet stable and some issues remain unresolved, plus adapting to 2.x would mean an almost irreversible upgrade for Vue Macros, we've decided not to support 2.x at this time. In other words, we will continue to support v1.

@warmthsea
Copy link
Author

Thank you for your reply. It seems that I need to change the abbreviation in the project to the official one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants