Skip to content

Uncaught (in promise) TypeError: Cannot read property 'instanceMap' of undefined #1451

@namelessyy

Description

@namelessyy

Version

6.0.0-beta.11

Browser and OS info

Chrome 90 / Windows 10

Steps to reproduce

  • 正常新建vite2 + vue3 + vuex4项目运行
  • 打开vue-devtools -> Inspector页面
  • 选中一个组件, 该组件分发了vuex状态
  • 调用mutation方法更新状态, 右侧vuex bindings下的值也能正常更新, 控制台会打印错误信息

What is expected?

控制台没有错误

What is actually happening?

控制台打印如下错误信息

Uncaught (in promise) TypeError: Cannot read property 'instanceMap' of undefined
    at getComponentInstance (backend.js:991)
    at Object.sendSelectedComponentData (backend.js:935)
    at Object.<anonymous> (backend.js:1211)
    at Object.emit (<anonymous>:1:755)
    at DevtoolsPluginApiInstance.notifyComponentUpdate (backend.js:381)
    at vuex.esm-bundler.js:456
    at vuex.esm-bundler.js:951
    at Array.forEach (<anonymous>)
    at Store2.commit (vuex.esm-bundler.js:951)
    at Store2.boundCommit [as commit] (vuex.esm-bundler.js:880)

尝试了 Electron 13(Chrome版本为91), Edge 90, 也存在同样的问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions