Bug: release 6.9.1 breaks TypeScript compiler (TSC) build
See original GitHub issueDescribe the bug
When I run tsc on my codebase with 6.9.1 I get a whole load of errors
To Reproduce
Run tsc
Expected behavior
No errors
Current behavior
Lots of errors, stacktrace as follows:
node_modules/express-validator/src/chain/context-runner-impl.ts(32,74): error TS7006: Parameter 'instance' implicitly has an 'any' type.
node_modules/express-validator/src/chain/sanitizers-impl.ts(1,28): error TS7016: Could not find a declaration file for module 'validator'. '/node_modules/validator/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/validator` if it exists or add a new declaration (.d.ts) file containing `declare module 'validator';`
node_modules/express-validator/src/chain/validators-impl.ts(1,28): error TS7016: Could not find a declaration file for module 'validator'. '/node_modules/validator/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/validator` if it exists or add a new declaration (.d.ts) file containing `declare module 'validator';`
node_modules/express-validator/src/context.ts(40,12): error TS2349: This expression is not callable.
Type '{ default: LoDashStatic; VERSION: string; templateSettings: TemplateSettings; chunk<T>(array: List<T>, size?: number): T[][]; compact<T>(array: List<false | "" | 0 | T>): T[]; ... 302 more ...; uniqueId(prefix?: string): string; }' has no call signatures.
node_modules/express-validator/src/context.ts(42,17): error TS7006: Parameter 'instances' implicitly has an 'any' type.
node_modules/express-validator/src/context.ts(42,28): error TS7006: Parameter 'group' implicitly has an 'any' type.
node_modules/express-validator/src/context.ts(50,46): error TS7006: Parameter 'instance' implicitly has an 'any' type.
node_modules/express-validator/src/context.ts(56,15): error TS7006: Parameter 'instance' implicitly has an 'any' type.
node_modules/express-validator/src/matched-data.ts(26,10): error TS2349: This expression is not callable.
Type '{ default: LoDashStatic; VERSION: string; templateSettings: TemplateSettings; chunk<T>(array: List<T>, size?: number): T[][]; compact<T>(array: List<false | "" | 0 | T>): T[]; ... 302 more ...; uniqueId(prefix?: string): string; }' has no call signatures.
node_modules/express-validator/src/matched-data.ts(29,10): error TS7006: Parameter 'field' implicitly has an 'any' type.
node_modules/express-validator/src/matched-data.ts(31,14): error TS7006: Parameter 'state' implicitly has an 'any' type.
node_modules/express-validator/src/matched-data.ts(31,21): error TS7006: Parameter 'instance' implicitly has an 'any' type.
node_modules/express-validator/src/matched-data.ts(38,27): error TS7006: Parameter 'instance' implicitly has an 'any' type.
node_modules/express-validator/src/select-fields.ts(11,3): error TS2349: This expression is not callable.
Type '{ default: LoDashStatic; VERSION: string; templateSettings: TemplateSettings; chunk<T>(array: List<T>, size?: number): T[][]; compact<T>(array: List<false | "" | 0 | T>): T[]; ... 302 more ...; uniqueId(prefix?: string): string; }' has no call signatures.
node_modules/express-validator/src/select-fields.ts(12,14): error TS7006: Parameter 'field' implicitly has an 'any' type.
Express-validator version:
tsc works on 6.9.0 and earlier versions tsc breaks on 6.9.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:11 (5 by maintainers)
Top Results From Across the Web
A brand new website interface for an even better experience!
Bug : release 6.9.1 breaks TypeScript compiler (TSC) build.
Read more >Documentation - tsc CLI Options - TypeScript
Flag Type Default
‑‑allowJs boolean false
‑‑allowUmdGlobalAccess boolean false
‑‑allowUnreachableCode boolean
Read more >Error - [tsc] node_modules/@fluentui/react/lib/components ...
I am trying to develop this SPFX inside our SharePoint online site @ https://www.c-sharpcorner.com/article/modal-popup-in-spfx/.
Read more >ts2349: this expression is not callable. type 'string' has no call ...
React - typescript TypeScript error: This expression is not callable ... release 6.9.1 breaks TypeScript compiler (TSC) build#973.
Read more >TypeScript Compiling with Visual Studio Code
Under the covers, we run the TypeScript compiler as a task. The command we use is: tsc -p . Step 3: Make the...
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 FreeTop 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
Top GitHub Comments
Republished as v6.9.2. Let me know if it doesn’t fix the issue.
Same here.