# @kitware/vtk.js + Jest = Cannot use import statement outside a module

**URL:** https://discourse.vtk.org/t/kitware-vtk-js-jest-cannot-use-import-statement-outside-a-module/6012
**Category:** Web
**Created:** [June 17, 2021, 11:53am UTC](https://discourse.vtk.org/t/kitware-vtk-js-jest-cannot-use-import-statement-outside-a-module/6012 "2021-06-17T11:53:44Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [June 18, 2021, 7:56pm UTC](https://discourse.vtk.org/t/kitware-vtk-js-jest-cannot-use-import-statement-outside-a-module/6012/2 "2021-06-18T19:56:26Z")

</div>

Does [this thread](https://discourse.vtk.org/t/how-to-tune-babel-loader-to-properly-import-a-module-named-macro-js-when-using-cra/5808) solve your issue?

---

_[View the full topic](https://discourse.vtk.org/t/kitware-vtk-js-jest-cannot-use-import-statement-outside-a-module/6012)._
