Cannot find type definition file for 'angularFTW' after installing GUI module

I’m getting the error TS2688: Cannot find type definition file for ‘angularFTW’. after installing the BabylonJS GUI module. I used NPM to install it and added
“types”: [
“babylonjs”,
“babylonjs-gui”,
“angularFTW”
],
to my tsconfig.json since I’m using Typescript…
I’m not sure what I’m doing wrong, couldn’t find anything on Google about ‘angularFTW’ so I’m kinda stumped…

Why did you add angularFTW to the types? This would not be an babylon issue if it is a different package you are using.

1 Like

I’m just following the instructions here Babylon.js/dist/preview release/gui at master · BabylonJS/Babylon.js · GitHub
which say to add that to your tsconfig.json.

Even if I remove it, using webpack still complains with the same error.

angularFTW is just a part of my weird sense of humor. I will remove it in a sec!
About the typings - it depends what bundler and typescript version you are using. Are you trying to use es6 modules? or are you trying to use commonjs?

1 Like

So you were THE GUY who added it
I thought it was @sebavan has a has the same humor :smiley:

1 Like

Not sure if it is a good or bad thing :wink:

1 Like

This is my tsconfig.json:
{
“compilerOptions”: {
“module”: “esNext”,
“target”: “es5”,
“moduleResolution”: “node”,
}
}

You are targeting esNext modules, I would recommend you using the es6 modules instead of the regular npm-packages. They have everything you need!
See here: