Open
Description
Version
6.2.1
Browser and OS info
Chrome 105.0.5195.125 / macOS 10.15.7
Steps to reproduce
- Using Vue 2.6.14 and Handsontable 11.1.0
- Create a component,
MyComponent
- Add a
ref
to theHotTable
component so that the handsontable instance can be accessed - Open Vue Devtools and try to inspect
MyComponent
<!-- MyComponent.vue -->
<template>
<hot-table ref="hot" :data="hotData"></hot-table>
</template>
<script>
import { HotTable } from '@handsontable/vue'
export default {
name: 'MyComponent',
components: {
HotTable,
},
data () {
return {
hotData: [['a', 'b'], ['c', 'd']],
}
},
}
</script>
What is expected?
I expect to be able to inspect MyComponent
What is actually happening?
Nothing loads for MyComponent
in Vue Devtools, and this error appears in the console. The HotTable
component itself can be inspected.
An error occurred in hook 'inspectComponent' with payload: {app: Vue, componentInstance: VueComponent, instanceData: null}
TypeError: Cannot convert a Symbol value to a string
at getCustomRefDetails (backend.js:8701:166)
at backend.js:4165:123
at Array.map (<anonymous>)
at processRefs (backend.js:4165:73)
at getInstanceState (backend.js:3925:93)
at getInstanceDetails (backend.js:3910:12)
at backend.js:5231:60
at DevtoolsHookable.callHandlers (backend.js:745:17)
at DevtoolsApi.callHook (backend.js:227:29)
at DevtoolsApi.inspectComponent (backend.js:315:32)
There are methods in handsontable to manipulate the table that require accessing the handsontable instance, which their docs say to use a ref
: https://handsontable.com/docs/vue-hot-reference/
This issue has been brought up before as a problem in the main Vue repo, and I think it was resolved by 2.6.14. I am now noticing it's an issue in devtools (or maybe it always has been).
https://forum.handsontable.com/t/vue-typeerror-cannot-convert-a-symbol-value-to-a-string/3768