DEV Community

Discussion on: Adding a Phaser game to an Angular App

Collapse
 
tonnerkiller profile image
tonnerkiller

Hi, I don't have a medium account so I comment here.

First of all thank you for your article (I have yet only read the first one, but it was exactly what I was looking for).

I was a bit hesitant to disable the check for default exports, so I looked for an alternative that allows me to leave the checks in place.

It seems that writing import * as Phaser from 'phaser'; instead of the import statement you mention in the article does the trick. At least I have yet not run into any trouble...

Collapse
 
brsullivan profile image
Braelyn

I'm so glad you found it helpful! And that makes sense since TypeScript added support for the import * syntax a little while ago. I've been meaning to go back and update that post with latest versions.