# Error in vtkGenericRenderWindow for vtk.js

**URL:** https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154
**Category:** vtk.js
**Tags:** vtkjs
**Created:** [January 15, 2025, 5:44am UTC](https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154 "2025-01-15T05:44:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![h4rry](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@h4rry](https://discourse.vtk.org/u/h4rry)
#### Post date: [January 15, 2025, 5:44am UTC](https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154/1 "2025-01-15T05:44:31Z")

</div>

Hi, i’m trying to use vtk.js with vue.js for 2D visualisation of 3D volumes. I tried calling `vtkGenericRenderWindow.newInstance()` in the `onMounted` hook of my component, but it would throw this error from inside the vtk.js implementation:

```auto
Uncaught TypeError: renNode is undefined
in traverse ForwardPass.js:43 (vtk.js implementation)

```

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [January 15, 2025, 8:32pm UTC](https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154/2 "2025-01-15T20:32:31Z")

</div>

If you want to see how to connect a vtkRenderWindow into a view component, you can look at [that code](https://github.com/Kitware/vue-vtk-js/blob/master/src/core/VtkView.js).

---

<div class="post-metadata">

### Author: ![h4rry](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@h4rry](https://discourse.vtk.org/u/h4rry)
#### Post date: [January 15, 2025, 11:56pm UTC](https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154/3 "2025-01-15T23:56:14Z")

</div>

Thank you! the issue turned out to be missing the `import @kitware/vtk.js/Rendering/Profiles/Volume`
