Skip to content
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

Node 12: "tsc --watch" stops working #31111

Closed
juergenzimmermann opened this issue Apr 25, 2019 · 5 comments
Closed

Node 12: "tsc --watch" stops working #31111

juergenzimmermann opened this issue Apr 25, 2019 · 5 comments
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status.

Comments

@juergenzimmermann
Copy link

juergenzimmermann commented Apr 25, 2019

TypeScript Version:
3.4.5 and 3.5.0-dev.20190425

Search Terms:
typescript watch node 12

Code

tsc --watch

Expected behavior:
No error

Actual behavior:
After upgrading from Node 11 to Node 12 tsc without any option (in addition to tsconfig.json) works as expected. However, tsc --watch produces this output:

#
# Fatal error in , line 0
# Check failed: U_SUCCESS(status).
#
#
#
#FailureMessage Object: 00000093307CD6A0

Playground Link:
Unpack attached testcase.zip, and invoke tsc resp. tsc --watch

Related Issues:
no
testcase.zip

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Apr 25, 2019
@sheetalkamat
Copy link
Member

Seem to be working correctly

c:\temp\testcase>node -v
v12.0.0

c:\temp\testcase>node node_modules\typescript\lib\tsc.js -v
Version 3.5.0-dev.20190425

c:\temp\testcase>node node_modules\typescript\lib\tsc.js -w
[3:17:03 PM] Starting compilation in watch mode...

[3:17:05 PM] Found 0 errors. Watching for file changes.

@hibas123
Copy link

I get the same Error on Windows and Linux while using NodeJS 12.

Tested Versions:
3.4.5 and 3.5.0-dev.20190425

Got the same error message:

#
# Fatal error in , line 0
# Check failed: U_SUCCESS(status).
#
#
#
#FailureMessage Object: 0x7ffc98e77040fish: 'tsc --watch' terminated by signal SIGILL

While looking at the syslog (on Linux) I could detect the following message:

kernel: [ 723.962466] traps: node[10648] trap invalid opcode ip:18ad9b9 sp:7fffb11fa018 error:0 in node[400000+2214000]

To me, it appears as if it is a bug inside Node that is somehow triggered by the typescript compiler.

@luozhihua
Copy link

Same as #27379

webpack --watch also has the same issue.

@abenhamdine
Copy link

same here on Windows and typescript 3.4.5 with nodejs 12

@juergenzimmermann
Copy link
Author

After upgrading to Node 12.1.0 the issue is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

6 participants