-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema.ts Typescript compilation error - No overload matches this call #1034
Comments
Just experienced this too |
Seems to be similar to #973 |
For those who are in a pinch and can't compile their production apps, simply deleting all the .ts files inside |
awesome that seems to do the trick.
…On Sat, May 8, 2021 at 12:52 PM Tim ***@***.***> wrote:
For those who are in a pinch and can't compile their production apps,
simply deleting all the .ts files inside
node_modules/express-validator/src/ seems to work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1034 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG6RO3ZOQF6KCA2B3VYAN53TMV25FANCNFSM44MHC7JA>
.
|
Also excluding |
Nope, you’d think so, but apparently not. That’s why I mentioned it in the original issue, as it was a bit odd. it was also mentioned in the other related issue too: #973 (comment) |
Do you mean all the .ts files in the folder and all subfolders? |
Yep. |
It worked indeed... I used that line: |
Yes, that's basically what I found as well. Just a disclaimer for that ^ above before anyone runs it all willy nilly: if you runs that in your |
Yes you are correct I forgot to mention that I redirected there... But this is better of course so no accidents would happen 😜 |
Thanks all! Fix is in v6.11.1. |
In my case, the issue still persisted on the latest version of express-validator but I fixed it by updating my typescript version to a more recent one. My project uses TypeORM and running |
Hi there,
Just started getting Typescript build errors happening in the past few hours with 6.11.0, and also now with last 2 releases? I've been using 6.10.1 without issue since release. Tried downgrading to 6.10.1 and 6.10.0 and am still getting the same issue now? Did those versions get re-pushed, or is something else up?
I found the previously logged Typescript Issues with your npm 7 update, and already have my tsconfig file ignoring node_modules. It seems all the .ts source files are included in the release, whereas 6.9.2 changelog explicitly mentions that the .ts source files are removed?
Also did the obligatory node_modules delete and reinstall, same thing. Using npm 6.14.12 as I've found 7 to be a nightmare!
To Reproduce
Compile/build/load a project.
Express-validator Version: 6.11.0
Typescript v 4.2.4
The text was updated successfully, but these errors were encountered: