8000 `Invalid assignment target` in v-model data binding with type assertion when building for production · Issue #409 · unjs/unimport · GitHub
[go: up one dir, main page]

Skip to content
Invalid assignment target in v-model data binding with type assertion when building for production #409
Open
@kingyue737

Description

@kingyue737

Environment

https://stackblitz.com/edit/github-4n1bjaud

Reproduction

  1. Add type assertion in v-model, for example, v-model="foo as any"
  2. npm run build

Describe the bug

Error during build:
image

According to the maintainer of vue vuejs/core#12620 (comment), it may be an issue of unimport. There is no error if ref is imported explicitly

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0