# Getting Module not found error

**URL:** https://discourse.vtk.org/t/getting-module-not-found-error/11289
**Category:** Support
**Created:** [April 24, 2023, 9:38pm UTC](https://discourse.vtk.org/t/getting-module-not-found-error/11289 "2023-04-24T21:38:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kevin\_Sweeney](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kevin_sweeney/32/3935_2.png) [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)
#### Post date: [April 24, 2023, 9:38pm UTC](https://discourse.vtk.org/t/getting-module-not-found-error/11289/1 "2023-04-24T21:38:25Z")

</div>

I am trying to add the code from [this demo](https://kitware.github.io/vtk-js/examples/MouseBoxSelectorManipulator.html) into my project. However, it is failing to find the two imported modules.

Errors:

- `Module not found: Error: Can't resolve 'vtk.js/Interaction/Manipulators' in '/.../.../itk-vtk-viewer/src/vtk'`
- `Module not found: Error: Can't resolve 'vtk.js/Interaction/Style/InteractorStyleManipulator' in '/.../.../itk-vtk-viewer/src/vtk'`

My code already has multiple imports and I am just adding the other two (see last two lines of snippet below)

```javascript
...
import vtkPolyData from 'vtk.js/Sources/Common/DataModel/PolyData'
import vtkBoundingBox from 'vtk.js/Sources/Common/DataModel/BoundingBox'
import vtkAxesLabelsWidget from './AxesLabelsWidget'
import vtkWidgetManager from 'vtk.js/Sources/Widgets/Core/WidgetManager'

import vtkInteractorStyleManipulator from 'vtk.js/Interaction/Style/InteractorStyleManipulator';
import Manipulators from 'vtk.js/Interaction/Manipulators';

```

I have tried running `npm install vtk.js` to update the modules and after that did not work, I also deleted the `node_modules` folder and ran `npm install` to regenerate. Neither worked.

Am I missing something?

* * *

Just in case it is important. I am actually making changes to `itk-vtk-viewer` code (snippet above) and building those changes through `itkwidgets` module, i.e. I am running `npm run build` on `.../itkwidgets/js/` folder.

I have ran `npm install vtk.js` in both the `itk-vtk-viewer` folder and also the `itkwidgets/js` folder.

---

<div class="post-metadata">

### Author: ![Kevin\_Sweeney](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kevin_sweeney/32/3935_2.png) [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)
#### Post date: [April 26, 2023, 11:26am UTC](https://discourse.vtk.org/t/getting-module-not-found-error/11289/2 "2023-04-26T11:26:21Z")

</div>

The modules are within the `Sources` folder. Must have been updated at some stage?

```auto
import vtkInteractorStyleManipulator from 'vtk.js/Sources/Interaction/Style/InteractorStyleManipulator';
import Manipulators from 'vtk.js/Sources/Interaction/Manipulators';

```

However, now there is no `vtkMouseBoxSelectorManipulator` within `Manipulators`.

In dependancies of the package.json file, the version of `vtk.js` is `14.11.4`

* * *

Only seems to have been added in more recent versions
