gilamran/tsc-watch

"TypeError: es.split is not a function" Error when change a file and compile

fernandopioli opened this issue · 2 comments

Hi there.
We are using this library to re compile a code after a change. We are using it on package.json.
At the first time it compiles and run successfully ( with the --onSuccess param ), but when I change one ts file and it needs to run again, it is returning this message:
"TypeError: es.split is not a function"

package.json script: "start:dev": "tsc-watch --noClear -p ./tsconfig.json --onSuccess "npm start -- --env=.env"",

MAC Ventura 13.6
Node 18.16

image

Can you create a simple repo. the reproduce this error?

bump