-
Notifications
You must be signed in to change notification settings - Fork 1.5k
TSLint RangeError: Maximum call stack size exceeded #1288
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
Comments
@patrickhousley I ran tslint on the single file, using |
Relevant package.json entry:
|
@chrisradek I will try to setup a sample project later today to help troubleshooting. |
@chrisradek Sorry it took so long. I setup a repo to reproduce the error: https://github.com/patrickhousley/aws-sdk-tslint-range-error |
This issue has been fixed per microsoft/TypeScript#12808 |
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. |
I am getting the below error when running tslint.
TSLint Configuration:
Example lambda function:
I can bypass the issue if I remove the rules
no-unused-variable
andno-use-before-declare
or if I just import the entire sdk likeimport * as AWS from 'aws-sdk';
. I should also note that the code builds just fine using Webpack and all my tests function fine.My goal is to import only the clients from the SDK that I need. My full lambda function built with Webpack 2 and tree shaking is ~378kB if I just import the clients I need but it pushes 1.65MB if I import the entire SDK.
The text was updated successfully, but these errors were encountered: