Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ref with custom setter. type error #4901

Closed
teleskop150750 opened this issue Oct 1, 2024 · 0 comments · Fixed by vuejs/core#12094
Closed

Ref with custom setter. type error #4901

teleskop150750 opened this issue Oct 1, 2024 · 0 comments · Fixed by vuejs/core#12094
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first upstream

Comments

@teleskop150750
Copy link

teleskop150750 commented Oct 1, 2024

Vue - Official extension or vue-tsc version

2.1.6

VSCode version

1.93.1

Vue version

3.5.10

TypeScript version

5.6.2

System Info

System:
  OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
  CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400
  Memory: 3.29 GB / 15.38 GB
  Container: Yes
  Shell: 3.7.1 - /usr/bin/fish
Binaries:
  Node: 20.15.1 - /run/user/1000/fnm_multishells/584511_1727791231236/bin/node
  npm: 10.7.0 - /run/user/1000/fnm_multishells/584511_1727791231236/bin/npm
  pnpm: 9.11.0 - /run/user/1000/fnm_multishells/584511_1727791231236/bin/pnpm
Browsers:
  Chrome: 129.0.6668.7011

package.json dependencies

No response

Steps to reproduce

image

What is expected?

Success

What is actually happening?

Error:
Property 'bar' does not exist on type 'string | Record<string, any>'.
Property 'bar' does not exist on type 'string'.ts-plugin(2339)

Link to minimal reproduction

Playground

Any additional comments?

No response

@teleskop150750 teleskop150750 changed the title Ref getter and setter Ref in template type error Oct 1, 2024
@teleskop150750 teleskop150750 changed the title Ref in template type error Ref with custom setter. type error Oct 1, 2024
@KazariEX KazariEX added bug Something isn't working upstream good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first and removed pending triage labels Oct 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants