Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application() breaks if esModuleInterop is true #20

Open
Peeja opened this issue Mar 28, 2020 · 0 comments
Open

Application() breaks if esModuleInterop is true #20

Peeja opened this issue Mar 28, 2020 · 0 comments

Comments

@Peeja
Copy link
Contributor

Peeja commented Mar 28, 2020

TypeScript will refuse to allow Application to be called when esModuleInterop is true:

A namespace-style import cannot be called or constructed, and will cause a failure at runtime.

I don't have my head around it enough to understand if that means that the library should or can be adjusted to make it work, or if it means that it inherently can't build sensible code when esModuleInterop is true. In my case, my project was fine turning it off, but it would be useful to have a note in the Readme, since the problem was hard to track down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants