VSCode Typescript.NPM Warning for Babylon.js TS File

217 Views Asked by At

I use VSCode as an IDE for Babylon.js. To show Babylon.js code hinting, I was recommended to use "babylon.d.ts" file as the value of the "typescript.npm" in the VSCode's User Settings.

But when I hovered over a property in my JS script, a warning came up:

Could not install typings files for JavaScript language features.

Please ensure that NPM is installed or configure 'typescript.npm'

in your user settings.

How to fix this error and show the code hinting for Babylon.js JS script on VSCode?

1

There are 1 best solutions below

1
On

to get babylon.js typings, just drop the babylon.d.ts file in your folder. The file will be used by VSCode compiler directly