Skip to content

Set operation on readonly target warnings with 0.25.14 #2337

@mbabker

Description

@mbabker

Describe the bug

After updating from 0.25.13 to 0.25.14, I started to get a lot of [Vue warn] Set operation on key "value" failed: target is readonly. messages in my browser console and test output. I'm guessing #2325 is the culprit here.

Searching for the error, I landed on vuejs/core#11795 which seems to imply that the variable name in the script section shouldn't match the name of the template ref, and that PR uses <li v-bind="page.li" ref="pageElements"> and const pageElements = useTemplateRef<HTMLLIElement[]>('pageElements') respectively.

There isn't a unique reproducer attached here, copying the example from the pagination component docs, running it in StackBlitz, and inspecting the browser console is enough to see it.

Reproduction

https://bootstrap-vue-next.github.io/bootstrap-vue-next/docs/components/pagination.html

Used Package Manager

npm

Validations

  • Have tested with the latest version. This is still alpha version and sometime things change rapidly.
  • 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.

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