Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHow about to set false 'esModuleInterop' on tsconfig.json? #872
Comments
|
Hi @Ikanny, thanks for making us aware of this issue! This sounds like the same issue as in #759, except its in the My next steps here are to try and reproduce the issue as you described, but also make sure the other packages in this repo work correctly with |
|
I was able to reproduce the failure in a scrap project. It only impacts Then I made a failing test in the integration tests. I'll open a draft PR for this, but if anyone else would like to pick that PR up and implement the fix, please feel free! |
|
@saeedseyfi your PR seems to fix one particular use case but does not prevent build failures with external projects where As for me, when trying to set
|


Description
The "node slack sdk" uses "esModuleInterop" for all projects. It makes me fail to compile my own projects. Especially, "event-api" package imports "EventEmitter" from "events" module as default. In this case, projects which set "esModuleInterop" false get compile error like
Module '"events"' has no default export..What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])Packages:
Select all that apply:
@slack/web-api@slack/events-api@slack/interactive-messages@slack/rtm-api@slack/webhooks