-
Notifications
You must be signed in to change notification settings - Fork 597
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
client-lex-runtime-service build fails with error TS2403 when esModuleInterop is enabled #1515
Comments
The same issue with Cypress has been discussed in detail in cypress-io/cypress#6690 (comment) It was fixed in [email protected] by including types in a way to avoid clashing with jest types. |
This SO answer suggests using |
Bug report in jest repo wrt types conflict for expect jestjs/jest#8570 |
Another option is to set compilerOptions.types to ["mocha"] while compiling test files But this list will need to be maintained in future when new types might be added which are required for testing. Documentation: https://www.typescriptlang.org/tsconfig#types |
The issue is reproducible even after upgrading to latest dependencies of @types/mocha and @types/jest.
|
Comment on jest repo explaining why |
This was an issue with PR #1512, as overwriting of tsconfig.json was enabled temporarily to add It was fixed by manually adding setting |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
clients/client-lex-runtime-service build fails with error TS2403 when esModuleInterop is enabled.
Refs: #1512 (comment)
SDK version number
master
To Reproduce (observed behavior)
esModuleInterop: true
in tsconfig.json for client-lex-runtime-servicebuild fails with TS2403 error:
Details
Expected behavior
build succeeds
Additional context
This issue is blocking enabling esModuleInterop for clients in #1512
The text was updated successfully, but these errors were encountered: