-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Update from typescript 3.1 to 3.6 -> out of memory exception (exit code 134) #33612
Comments
I've encountered this problem today as well after regenerating my yarn.lock. Doesn't seem to be caused specifically by the TypeScript version in my case though, as I pegged it to 3.4.5 and still encountered the problem. My guess it's one of the build tools I'm relying on (Create React App -> Babel, Webpack, ES lint are all candidates). |
We'd need some way to reproduce the problem to be able to investigate. Is there a repo available, or could you send us a zip file? |
Ok. I figured out the issue. For some reason, we have both a tsconfig.json and jsconfig.json file in our project. The issue occurs because the 3.6 version also compiles the jsconfig, which the old typescript didn't seem to do. We removed the jsconfig file because I don't think we need it, and that seems to solve it. |
@RyanCavanaugh we are experiencing similar "Out of memory" exception (what's very weird, it's not consistent - can be reproduced only some machines) our codebase metadata:
⚡️Looks like the issue persist within how Following triggers out of memory error: "include": ["typings", "src/js", "apps", "libs"], With this one, all good: "include": [
"typings/**/*.d.ts",
"src/js/**/*.ts",
"src/js/**/*.tsx",
"src/js/**/*.js",
"apps/**/*.ts",
"apps/**/*.tsx",
"libs"
] ts version: UPDATE: The issue is caused by javascript files within following causes memory error: "include": [
"typings/**/*.d.ts",
"src/js/**/*.ts",
"src/js/**/*.tsx",
"src/js/**/*.js",
"apps/**/*.ts",
"apps/**/*.tsx",
+ "apps/**/*.js",
"libs"
] any ideas ? |
MS do consider having tsc.exe back... Chakra Core was rock solid, and by the looks of it, worked better ! |
I had a
|
TypeScript Version: 3.6
Search Terms: 3.6 exit code 134 out of memory
Code
We have loads of code in our codebase, I have no idea what causes the issue
Expected behavior:
compilation succeeds
Actual behavior:
error during compilation, error code 134
Playground Link: don't have one
Related Issues: nope
Now that I've tried to fill out the mandatory form. Let me explain my issue. Earlier today I've updated visual studio to version 16.3.1. This also installed typescript 3.6. Now after this, our project doesn't compile correctly anymore. We have defined our project to use the latest typescript version. The compile command and error are:
before the update, we used typescript 3.1, which worked fine. A difference I spotted is that in 3.1, tsc.exe was called directly, while in 3.6 it is called via nodejs. It also takes WAY longer and eats lots of memory (probably causing the memory exception).
We've now worked around it by fixing the typescript version to 3.1 in our project
The text was updated successfully, but these errors were encountered: