You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello ! I'm trying to use ts-patch to replace ttypescript but I'm facing some issues.
I'm using the first method describe in your documentation:
tspc --build
But unfortunately, I get those logs as a result:
> nx run @icure/typescript-common:build
evalmachine.<anonymous>:118235
throw e;
^
TypeError: transformerFn is not a function
at tspWrappedFactory (evalmachine.<anonymous>:205:39)
at evalmachine.<anonymous>:110260:33
at evalmachine.<anonymous>:110347:61
at Array.map (<anonymous>)
at transformNodes (evalmachine.<anonymous>:110347:50)
at emitJsFileOrBundle (evalmachine.<anonymous>:110945:26)
at emitSourceFileOrBundle (evalmachine.<anonymous>:110880:7)
at forEachEmittedFile (evalmachine.<anonymous>:110634:26)
at emitFiles (evalmachine.<anonymous>:110854:5)
at emitWorker (evalmachine.<anonymous>:118161:30)
Node.js v18.16.0
Activity
nonara commentedon Jun 22, 2023
I had a look, and I discovered the issue was in the transformer.
I made a PR for the library, which you can track here:
There are more details on what's going on there, also.
As a side note, you'll need to use different config when it gets merged, so be sure to check the example I wrote in the readme
LotuxPunk commentedon Jun 23, 2023
Thanks very much for the quick fix ! 🙏