# Getting an error trying to integrate one of your examples to my project

**URL:** https://discourse.vtk.org/t/getting-an-error-trying-to-integrate-one-of-your-examples-to-my-project/4983
**Category:** Support
**Created:** [January 11, 2021, 2:46pm UTC](https://discourse.vtk.org/t/getting-an-error-trying-to-integrate-one-of-your-examples-to-my-project/4983 "2021-01-11T14:46:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![daniel\_Gilyadov](https://discourse.vtk.org/user_avatar/discourse.vtk.org/daniel_gilyadov/32/2838_2.png) [@daniel\_Gilyadov](https://discourse.vtk.org/u/daniel_Gilyadov)
#### Post date: [January 11, 2021, 2:46pm UTC](https://discourse.vtk.org/t/getting-an-error-trying-to-integrate-one-of-your-examples-to-my-project/4983/1 "2021-01-11T14:46:10Z")

</div>

Hey everyone,

yesterday I tried to integrate this:

> <https://github.com/OHIF/react-vtkjs-viewport/blob/master/examples/VTKCrosshairsExample.js>

with my project, but unfortunately got an error

 ![image](https://discourse.vtk.org/uploads/default/original/2X/7/7ad771fa0c91038e6f6cdd60a41111d1bb051f2b.png)

Steps I took to integrate:

1. downloaded this file, and imported it into one of my project files
2. checked the versions on the examples and matched them with my project

I tried to narrow the code to figure out which part of it was causing the error, and saw that those lines:

```
import {
  View2D,
  getImageData,
  loadImageData,
  vtkInteractorStyleMPRCrosshairs,
  vtkSVGCrosshairsWidget,
} from '@vtk-viewport';

```

were causing the error.

Any help would be highly appreciated
