Skip to content

[v3.2.0]: v-for with enum key in object doensn't work anymore #5927

@badsgahhl

Description

@badsgahhl

Vue - Official extension or vue-tsc version

3.2.0

VSCode version

Vue version

3.5.26

TypeScript version

5.9.3

System Info

package.json dependencies

Steps to reproduce

  1. Run pnpm i
  2. Run pnpm typecheck
  3. Observe that type error occurs

"v1" | "v2"' is not assignable to parameter of type 'EnumA'. Type '"v1"' is not assignable to type 'EnumA'.

What is expected?

No type errors, downgrade to v3.1.8 to observe that no type errors occur

What is actually happening?

An error is thrown on Objects with enum values as key during usage of v-for.

Link to minimal reproduction

https://stackblitz.com/edit/github-gzbuzr-z2x2agyf?file=package.json

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first🔩 p2-edge-case

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions