You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
Unfortunately the esModuleInterop flag doesn't have a smaller check which just yells at users when they call/construct an import *.
Maybe this package could do that and provide a good error message?
It isn't legal in ES2015+ to call/construct a namespace import (something declared with the syntax `import * as foo from 'foo'`). Could you please convert your import to use the following syntax?
```tsimportfoo=require('foo')
```
Alternatively, you can use a default import like the following with `esModuleInterop` turned on:
```tsimportfoofrom'foo';
```