swpowe Posted June 16, 2018 Share Posted June 16, 2018 Please don't hate me.... I've searched this forum and online and tried all different kinds of suggestions and i still can't get IntelliSense to work correctly. Anyone willing to help? I started with a clone of this https://github.com/photonstorm/phaser3-project-template. Phaser works but I can't get intellisense to work. I've downloaded the typescript defs from here https://github.com/photonstorm/phaser3-docs/blob/master/typescript/phaser.d.ts but I'll be honest, I don't know if I've put them in the correct place or set things up correctly etc. I created a jsconfig.json file in the root of my project it's contents are: { "compilerOptions": { "target": "es6" }, "include": [ "src/**/*" ], "exclude": [ "node_modules" ] } Any help would be appreciated. Spencer Link to comment Share on other sites More sharing options...
evs Posted June 16, 2018 Share Posted June 16, 2018 If you have put phaser.d.ts in the same folder as your code Try adding this to the top of your game.ts /// <reference path="./phaser.d.ts"/> kvazmatik 1 Link to comment Share on other sites More sharing options...
swpowe Posted June 17, 2018 Author Share Posted June 17, 2018 Thanks for the suggestions @evs but unfortunately still isn't quite working. Link to comment Share on other sites More sharing options...
Recommended Posts