lean / phaser-es6-webpack

A bootstrap project for create games with Phaser + ES6 + Webpack.
MIT License
1.28k stars 314 forks source link

VS Code is not using IntelliSense #44

Closed niklasfink closed 7 years ago

niklasfink commented 7 years ago

Hi, I can't get VS Code IntelliSense (autocompletion) to work properly with your setup. I thought this should be enable automatically, out of the box? How can I make it work? 🙂

image

necrosmash commented 7 years ago

I managed to get the desired behaviour by changing

import Phaser from 'phaser'

to

import 'phaser'

in the files that include that import:

For the record, I don't require a /// <reference line, like you have.

The demo still runs fine with these changes. Is there any benefit to specifying the name Phaser when performing the import?

lean commented 7 years ago

With Phaser 2.x the library is not a module itself. We must wait for the release 3 for a real module import. Maybe this is your issues