Types validation are not working on Ubuntu
See original GitHub issueBug description
When ever I try to generate types I get an error. Zod and ts-to-zod are both installed. What am I doing wrong?
Input
➜ git:(develop) ✗ npx ts-to-zod ./src/types/client.ts ./src/types/client.ts
✖ Validating generated types
› Error: File '/.../source.ts' is not a module.
Versions
- Typescript:
v4.4.3 - Zod:
v3.9.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
validns - DNS and DSNSEC zone file validator
-f Quit on first validation error. Normally, validns continues working on a zone after encountering a parsing or validation error. -p name Activate...
Read more >Jquery validation plugin - TypeError - Stack Overflow
You're not loading the validation plugin. ... off the validation code in additional-methods hence giving the type error's you posted.
Read more >validate.js
You can not, however, use the regular function with async validations. Any A+ type promise can be used, just override validate.Promise with the...
Read more >Configure and validate exclusions for Microsoft Defender for ...
Supported exclusion types; How to configure the list of exclusions ... performance issues caused by Defender for Endpoint on Linux. Warning.
Read more >Troubleshooting AWS CLI errors - AWS Command Line Interface
If you're having issues with your terminal processing JSON formatting, ... MainThread - botocore.args - DEBUG - The s3 config key is not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

And I’m seeing the same in PowerShell and cmd on Windows. I also see it when running PS or cmd as admin.
(node v14.17.6)
… good work and awesome tool btw 👍
Normally the library is well tested, this is just to help me to find some little edge cases 😉