Skip to content

Can't edit data of component with no setup function #1427

@syberon

Description

@syberon

Version

6.0.0-beta.8

Browser and OS info

Vivaldi 3.7.2218.58 / Windows 10

Steps to reproduce

  1. Open inspector on page with Vue 3 script
  2. Go to Vue tab
  3. Select any variable in 'data' and try to change its value

What is expected?

Variable value changed to new

What is actually happening?

Variable value is not changing and there are errors in Console:

backend.js:388 An error occured in hook editComponentState
    callHandlers @ backend.js:388
    callHook @ backend.js:27
    editComponentState @ backend.js:132
    editComponentState @ backend.js:803
    (anonymous) @ backend.js:1061
    emit @ backend.js:5799
    _emit @ backend.js:4141
    (anonymous) @ backend.js:4073
    (anonymous) @ backend.js:4073
    listener @ backend.js:6796
    postMessage (async)
    n @ proxy.js:1

backend.js:389 TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.editState (backend.js:3376)
    at backend.js:3928
    at DevtoolsHookable.callHandlers (backend.js:385)
    at DevtoolsApi.callHook (backend.js:27)
    at DevtoolsApi.editComponentState (backend.js:132)
    at Object.editComponentState (backend.js:803)
    at Bridge.<anonymous> (backend.js:1061)
    at Bridge.emit (backend.js:5799)
    at Bridge._emit (backend.js:4141)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions