-
Notifications
You must be signed in to change notification settings - Fork 41
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
Can't compile in an es6 typescript project #1251
Comments
This issue is a bit old, but I want to chime in that I have the same issue when compiling an ESM library that is dependent on aws4-axios. The error I receive is identical to what @horrendo reports in his github repo:
Also pulled from @horrendo 's link, the solution of casting the interceptor solved the typing issue for me:
|
This is quite likely due to my inexperience with es6, but I'm in the process of migrating a typescript project from commonjs to es6, and I'm stuck.
I've created a small test case at https://github.com/horrendo/aws4-test. The README shows the error I'm getting. It also shows a workaround which I'd like to avoid if possible.
I'd appreciate any help.
Thanks !!
The text was updated successfully, but these errors were encountered: