-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
ForkTsCheckerWebpackPlugin Configuration #127
Comments
Oh that's interesting. Does this error out the build? |
Yes, but not before freezing up my computer :D Up to 4-5 endpoints it works, it does take a long time. |
I am also facing the same issue |
@MarZab @ashutoshkmr Can you create a simple repo that I can test with? |
The issue shows up with With trivial examples it takes a few more endpoints than with larger codebase for the it to come up. https://github.com/MarZab/serverless-bundle-typescript-timeout
|
Thanks for the repo. I looked into it. It seems like serverless-webpack has been trying to resolve this issue (serverless-heaven/serverless-webpack#299 (comment)) and they have a proposed fix (serverless-heaven/serverless-webpack#517) in their upcoming It serializes the compile process. I still see the Node warning about the memory leak. But the functions seem to get packaged. I created a branch for you to test with: $ npm install --save-dev AnomalyInnovations/serverless-bundle#issue-127-forktschecker And enable the option in your custom:
bundle:
serializedCompile: true I don't think the solution is ideal. I'd prefer being able to set the concurrency instead. But give it a shot. |
I tried on my project, and it did complete while also showing the memory leak. But it took a lot longer so I did some testing. I added an option to disable forktschecker here.
My solution for now is to not use serializedCompile and to disable tsForkTsChecker compile time. |
Yeah the Maybe for the time being hang on to your solution? |
We're also running into this issue, but so far the only issue we have is that it slows down deployment by a lot. Deployment with tsForkTsChecker turned off is 19 seconds and deployment with it turned on is 49 seconds. I'm looking forward to seeing @MarZab 's solution in serverless-bundle. |
@Namstel So it's faster with ForkTsChecker turned off? |
@jayair Yes definitely. |
We are hearing a ton of folks having memory related issues because of this plugin. Anybody want to take a crack at this and making ForkTsChecker an option instead? |
@jayair Please have a look at the PR. I have been having a really bad time with this memory leak error. My deployments pipeline fail 9/10 times because it crashes the entire process and if I deploy it on my machine it freezes my computer. I hope this gets fixed soon. |
Yup. I’ll be looking at this today. Thanks!
… On Jan 7, 2021, at 10:04 AM, Shikhar Sharma ***@***.***> wrote:
Hey @jayair
I've created a PR to make ForkTsChecker an option
@jayair Please have a look at the PR. I have been having a really bad time with this memory leak error. My deployments pipeline fail 9/10 times because it crashes the entire process and if I deploy it on my machine it freezes my computer. I hope this gets fixed soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi all, we made this an option: https://github.com/AnomalyInnovations/serverless-bundle/releases/tag/v4.2.0 Read more on the option here: https://github.com/AnomalyInnovations/serverless-bundle#forktscheckerwebpackplugin Can you try it and let me know if it fixes your issues? |
@jayair I am currently on version |
Currently,
ForkTsCheckerWebpackPlugin
is enabled when TypeScript is enabled.While building, the service is run for each build, breaking the build when enough endpoints are defined:
I would suggest a configuration option to not run ForkTsCheckerWebpackPlugin on build or to somehow run it before building.
The text was updated successfully, but these errors were encountered: