tsmirror icon indicating copy to clipboard operation
tsmirror copied to clipboard

Hard to troubleshoot problems

Open Kansuler opened this issue 4 years ago • 2 comments

I am very intrigued by this package. It's something I've felt has been missing in Typescript, just a simple way to validate if unknown data match an interface.

I've tried to apply it to our Nuxt project, and I'm getting this error:

tsmirror.reflect was not compiled out

I've tried to implement the transformer with both ttypescript and with getCustomerTransformers option. I know that the transformer function get executed.

I'm using [email protected] and [email protected]

Kansuler avatar Dec 10 '20 15:12 Kansuler

I'm also facing a similar issue, documented here: https://github.com/ziruihao/tsmirror-demo

ziruihao avatar Mar 29 '21 18:03 ziruihao

You need to use the transformer of this project, I'd suggest you doing this with ttypescript. I've tested and found out that this works with ts 3.8.3, however, seems to fail with ts 4.2.4.

BTW, this library is really helpful, it will be even better if there's an example to reproduce the result in the doc in repository.

function2-llx avatar Apr 30 '21 16:04 function2-llx