# The module "babylonjs-gui" could not be found

**URL:** <https://forum.babylonjs.com/t/the-module-babylonjs-gui-could-not-be-found/19789>\
**Category:** Questions\
**Tags:** gui\
**Created:** [April 8, 2021, 3:10am UTC](https://forum.babylonjs.com/t/the-module-babylonjs-gui-could-not-be-found/19789 "2021-04-08T03:10:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yocover](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yocover/32/15415_2.png) [@yocover](https://forum.babylonjs.com/u/yocover)\
**Post date:** [April 8, 2021, 3:10am UTC](https://forum.babylonjs.com/t/the-module-babylonjs-gui-could-not-be-found/19789/1 "2021-04-08T03:10:07Z")

</div>

I used typescript to introduce the GUI, and found that an error was reported. I don’t know why, and I also installed the required packages. What’s the matter?

“@babylonjs/core”: “^4.2.0”,  
“@babylonjs/gui”: “^4.2.0”,  
“@types/earcut”: “^2.1.1”,

“babylonjs”: “^4.2.0”,  
“babylonjs-gui”: “^4.2.0”,

“ts-loader”: “^8.1.0”,  
“typescript”: “^4.2.3”

---

<div class="post-metadata">

**Author:** ![brianzinn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brianzinn/32/28013_2.png) [@brianzinn](https://forum.babylonjs.com/u/brianzinn)\
**Post date:** [April 8, 2021, 3:32am UTC](https://forum.babylonjs.com/t/the-module-babylonjs-gui-could-not-be-found/19789/2 "2021-04-08T03:32:27Z")

</div>

hi @yocover welcome to the community! It looks like you have not installed everything in your package.json.

For the NPM imports you need to choose from either the ones that start with `@babylonjs` or not. They both include typings.

So, if you are using ES6 ( [Babylon.js ES6 support | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/developWithBjs/treeShaking)):

```auto
"@babylonjs/core": "^4.2.0",
"@babylonjs/gui": "^4.2.0",

```

Otherwise import the “legacy” ones:

```json
"babylonjs": "^4.2.0",
"babylonjs-gui": "^4.2.0",

```

There is a good TypeScript starter here:  
[RaananW/babylonjs-webpack-es6 (github.com)](https://github.com/RaananW/babylonjs-webpack-es6)

If you want to use snowpack you can get started with:

```bash
npx create-snowpack-app new-dir --template snowpack-babylon-typescript

```

---

<div class="post-metadata">

**Author:** ![yocover](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yocover/32/15415_2.png) [@yocover](https://forum.babylonjs.com/u/yocover)\
**Post date:** [April 8, 2021, 3:46am UTC](https://forum.babylonjs.com/t/the-module-babylonjs-gui-could-not-be-found/19789/3 "2021-04-08T03:46:31Z")

</div>

Thank you very much for your enthusiasm reply, I tried to delete two packs with @, I got the problem, I also tried to restart Visual Studio Code, and then I found that GUI was found, it is a strange thing. 😆
