# Cannot find namespace 'VtkOpenGLRenderWindow0'

**URL:** https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920
**Category:** Web
**Created:** [October 19, 2021, 2:49pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920 "2021-10-19T14:49:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bernland](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/b19c9b/32.png) [@bernland](https://discourse.vtk.org/u/bernland)
#### Post date: [October 19, 2021, 2:49pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920/1 "2021-10-19T14:49:47Z")

</div>

I set up an Angular app that works well with GenericRenderWindow as well as FullScreenRenderWindow.

However, I can’t seem to be able to use OpenGL/RenderWindow:

import vtkOpenGLRenderWindow from ‘@kitware/vtk.js/Rendering/OpenGL/RenderWindow’;

Error: node\_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow.d.ts:268:23 - error TS2503: Cannot find namespace ‘VtkOpenGLRenderWindow0’.

Any ideas?

---

<div class="post-metadata">

### Author: ![Donny\_Zimmerman](https://discourse.vtk.org/user_avatar/discourse.vtk.org/donny_zimmerman/32/301_2.png) [@Donny\_Zimmerman](https://discourse.vtk.org/u/Donny_Zimmerman)
#### Post date: [October 19, 2021, 5:23pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920/2 "2021-10-19T17:23:49Z")

</div>

When I am using WebAssembly with VTK I have to use a vtkSDL2OpenGLRenderWindow instead of vtkOpenGLRenderWindow. Not sure if that applies to vtk.js or not.

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [October 20, 2021, 6:42pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920/3 "2021-10-20T18:42:15Z")

</div>

This appears to be a typo in the d.ts file for the OpenGLRenderWindow. I will update this thread once it has been resolved.

---

<div class="post-metadata">

### Author: ![subratsarangi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/subratsarangi/32/4145_2.png) [@subratsarangi](https://discourse.vtk.org/u/subratsarangi)
#### Post date: [October 25, 2021, 2:06pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920/4 "2021-10-25T14:06:54Z")

</div>

I have imported this from vtk.js  
import vtkOpenGLRenderWindow from ‘vtk.js/Sources/Rendering/OpenGL/RenderWindow’;

Getting the same type error. Any fixes for this will be helpful.

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [October 26, 2021, 2:50pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920/5 "2021-10-26T14:50:53Z")

</div>

PR is available here: [fix(OpenGL/RenderWindow): fix auto-generated types by floryst · Pull Request #2142 · Kitware/vtk-js · GitHub](https://github.com/Kitware/vtk-js/pull/2142)

---

<div class="post-metadata">

### Author: ![subratsarangi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/subratsarangi/32/4145_2.png) [@subratsarangi](https://discourse.vtk.org/u/subratsarangi)
#### Post date: [October 27, 2021, 2:45pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920/6 "2021-10-27T14:45:34Z")

</div>

There are two typo errors coming please check.

141: normalizedDisplayToViewport(x : number, y : number, z : number, renderer : vtRenderer): Vector3;

vtRenderer should be - vtkRenderer

175: viewportToNormalizedDisplay(x : number, y number, z : number, renderer : vtkRenderer): Vector3;  
y number should be y: number

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [October 27, 2021, 3:48pm UTC](https://discourse.vtk.org/t/cannot-find-namespace-vtkopenglrenderwindow0/6920/7 "2021-10-27T15:48:49Z")

</div>

Thanks for catching those. My editor must have not reloaded the types when I tested it. Typo fix: [fix(RenderWindow): fix def typos by floryst · Pull Request #2144 · Kitware/vtk-js · GitHub](https://github.com/Kitware/vtk-js/pull/2144)
