Typeroots not working on ubuntu

As I can see, in the docs, It’s said:

"typeRoots": [
    "./node_modules/phaser/types"
],
"types": [
    "Phaser"
]

but this doesn’t work on ubuntu which results to Phaser never resolved at all. The reason for Typeroots is that I want to use it in every file without importing it. So that’s why I do it, but on ubuntu, this doesn’t work and I think I know why. Because in the types property, we have Phaser with capital P. because ubuntu is case sensitive, it won’t find this node_modules/Phaser. somehow typeRoots doesn’t work (i filed a bug, but taking so much time). In every file, I have Phaser with capital P. Is there any other way to solve this on ubuntu?

Shouldn’t it be "phaser"?

  1. I tried it and it might work, no more errors. I just don’t understand that why typescript doesn’t try to search Phaser in one of the folders I specified in typeRoots . It’s still searching it in node_modules/phaser directly.

  2. Why does it say on phaser 3 docs that we should have Phaser with capital P in types property in tsconfig.json ?

  3. I posted this link because of the issue of Phaser and it really got me thinking that typescript might have a bug. https://github.com/microsoft/TypeScript/issues/37708 what do you think?

Where is that?

https://photonstorm.github.io/phaser3-docs/ scroll down and search for “TypeScript Definitions”

I have the same issue before. And after my silliest research its goes nothing than change my template from other repository on github that worked. I dont know why thats happend only in Linux, but not either in Windows and Mac.

Remove compilerOptions.types? I’m not sure you actually need it.