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 has been 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';
```
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Unfortunately the
esModuleInterop
flag doesn't have a smaller check which just yells at users when they call/construct animport *
.Maybe this package could do that and provide a good error message?
The text was updated successfully, but these errors were encountered: