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...
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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...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.