theseanl / tscc

A collection of tools to seamlessly bundle, minify Typescript with Closure Compiler
MIT License
161 stars 11 forks source link

Fails on MacOS Ventura #812

Open PaulWagener opened 1 year ago

PaulWagener commented 1 year ago

Running tscc fails on MacOS Ventura (13.0) with the following error:

TSCC: tsickle uses a custom tslib optimized for closure compiler. importHelpers flag is set.
⡂⢘ Closure Compiler 00:02Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
error Command failed with exit code 1.

The issue is that the compiler binary gives a segmentation fault:

./node_modules/google-closure-compiler-osx/compiler
[1]    16039 segmentation fault  ./node_modules/google-closure-compiler-osx/compiler

This issue has been described & fixed in an issue in the google-closure-compiler-npm repository: https://github.com/google/closure-compiler-npm/issues/265

This problem can be fixed by upgrading to the latest version of google-closure-compiler-osx, there is already a dependabot pull request which does this: https://github.com/theseanl/tscc/pull/790