question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Types validation are not working on Ubuntu

See original GitHub issue

Bug 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:open
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ehjelholtcommented, Oct 13, 2021

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 👍

1reaction
fabien0102commented, Sep 27, 2021

Normally the library is well tested, this is just to help me to find some little edge cases 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found