Closed as not planned
Description
π Search Terms
"segmentation fault"
π Version & Regression Information
- This is a crash
β― Playground Link
https://github.com/remarkjs/remark/tree/main/packages/remark-parse
π» Code
The code is not actually relevant. It still happens if you remove the content of packages/remark-parse/lib/index.js
. The existence of the file is important.
π Actual behavior
Using Node.js 22, running tsc --build
from the remark-parse
workspace, yields:
$ tsc -b
[1] 57135 segmentation fault (core dumped) tsc -b
π Expected behavior
It generates type definitions
Additional information about the issue
It works in Node.js 20, but not Node.js 22.
If the project is built with Node.js 20, then an incremental build with Node.js 22 wonβt crash TypeScript.
Neither tsc
nor tsc --showConfig
not tsc --build --clean
causes a crash, only tsc --build
.
See remarkjs/remark#1291 (comment) for some more info where this was first discovered.