Probably all versions above `1.6.4` are not working with `preserveSymlinks` tsconfig option
See original GitHub issueHey, this is a cool library I really like the idea of inferring TS types from JSON schemas 👌🏻
Almost all the solutions I found are focused on generating types (via CLIs or code), this library is different & unique.
I found something interesting, all the recent versions (above 1.6.4
) of this library are not working for me, I’m pretty sure my config is correct I’m using Typescript v4 and strict
mode is enabled.
This is what I receive, the inferring is not working 😕 Used the example in the Readme.
The interesting part is this, it looks like 1.6.4
is the most used version in the last week, so I test it and it’s working perfectly!
Can anyone please confirm that versions above 1.6.4
work? or at least the recent one 2.5.5
? Maybe I have something wrong on my side, thanks.
This is my config:
- node
v16.16.0
- Typescript
v4.7.4
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Hi @ThomasAribart, thanks for the reply. I’m sorry for the late response.
To be honest, I’m still not sure what
preserveSymlinks
is used for 😅 it’s a monorepo project where some code is shared between different projects/services.I figured out that
preserveSymlinks
is not required in my project, and the error I received 3 days ago after disablingpreserveSymlinks
is not related to this option (I already fixed it) so I can use this library now without any issues 🎉Thanks again for the fast replies and help 🙂
I’m going to close this issue.
Nice catch, thanks ! I’ll have a look ! The least I can do is add it as a requirement in the docs.
For what reason do you use
preserveSymlinks
options ? Sharing code across services ?