theseanl / tscc

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

tscc is not working with macOS Ventura #854

Open opozo opened 1 year ago

opozo commented 1 year ago
tscc
TSCC: Module option is set. tsickle converts TypeScript modules to Closure modulesvia CommonJS internally, so it will be overridden to "commonjs".
TSCC: --outDir option is set, but it is no-op for tscc.Use prefix option in spec file to control output directory.
TSCC: --rootDir is set, but it is no-op for tscc. It will internally set to /.
TSCC: tsickle uses a custom tslib optimized for closure compiler. importHelpers flag is set.
⠍⠁ Closure Compilernode:events:491
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
Emitted 'error' event on Socket instance at:
    at Socket.onerror (node:internal/streams/readable:785:14)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

Node.js v18.14.2

tscc.spec.json is:

{
    "modules": {
        "out": "./main.ts"
    },
    "external": {
        "angular": "angular"
    },
    "prefix": "../min/tscc"
}