Handontable/Vue - error when running in production

Tags: #<Tag:0x00007fbe83fbd558>


I’m using Handsontable with the Vue wrapper (versions 8.0.0 and 5.0.1). I have created a test component from the documentation: https://handsontable.com/docs/8.0.0/frameworks-wrapper-for-vue-installation.html

When I build my js and css assets with npm run dev (development mode) this works as expected and I can see and interact with the table. However, when I run in production mode (npm run production) an error is logged to the console:

app.js:2 DOMException: Failed to execute 'insertBefore' on 'Node': This node type does not support this method.
    at new H (
    at new dg.Core (
    at a.hotInit (
    at a.mounted (
    at Ve (
    at Zt (
    at Object.insert (
    at C (
    at On.__patch__ (
    at On.e._update ( 

and the table does not display.

My application is built in Laravel (v7.25) and I use Laravel-mix to build the assets. My Vue version is 2.6.12.

Any ideas?


Hi Martin,

This issue sounds similar to https://github.com/handsontable/vue-handsontable-official/issues/189

Do you the mounted() hook?

Hi Aleksandra,

Thanks for the reply. I tried your suggestion, but no joy. However, I had a look at your GitHub issue tracker and I believe my problem is related to issue 188 https://github.com/handsontable/vue-handsontable-official/issues/188

I will work around for the time being, and wait for an update to the Vue wrapper.


I will keep you updated with the fix of https://github.com/handsontable/vue-handsontable-official/issues/188, Martin.

Hi Martin,

we just released a new version of the Vue wrapper - 5.1.0 - that solved the mentioned issue https://github.com/handsontable/vue-handsontable-official/issues/188

Hi Alexsandra,

I have just downloaded, installed, and production built with the updated wrapper and everything seems to be working well!

Many thanks,

Great. Thank you for the feedback.

If you’d need anything please feel free to email me - support@handsontable.com