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.

Build errors with TypeScript since 7.3.1

See original GitHub issue

With 7.3.1, I get these build errors in my project:

node_modules/monk/index.d.ts(45,22): error TS2314: Generic type 'FindOneOptions<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(203,16): error TS2314: Generic type 'FindOneOptions<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(210,16): error TS2314: Generic type 'FindOneOptions<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(216,17): error TS2314: Generic type 'FindOneOptions<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(220,16): error TS2314: Generic type 'FindOneOptions<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(226,17): error TS2314: Generic type 'FindOneAndDeleteOption<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(230,16): error TS2314: Generic type 'FindOneAndDeleteOption<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(238,17): error TS2314: Generic type 'FindOneAndUpdateOption<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(243,17): error TS2314: Generic type 'FindOneAndUpdateOption<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(250,17): error TS2314: Generic type 'FindOneAndReplaceOption<T>' requires 1 type argument(s).
node_modules/monk/index.d.ts(255,16): error TS2314: Generic type 'FindOneAndReplaceOption<T>' requires 1 type argument(s).

With 7.3.0 I don’t get these. Not sure what other details you need to reproduce? Just let me know.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cupcakearmycommented, Aug 31, 2020

@mathieudutour PR is out 😃

0reactions
cupcakearmycommented, Aug 31, 2020

Awesome, you are right. I would guess the native mongo types have changed. I’ll do a PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve compile errors during upgrade of Angular ...
So I tried upgrading Typescript to 3.2 and then running “ng serve”, but it gives me this error: ERROR in The Angular Compiler...
Read more >
ng build --prod error · Issue #573 · KillerCodeMonkey/ngx-quill
Happens during an ng build --prod . ERROR in ./node_modules/ngx-quill/fesm5/ngx-quill.js Module build failed (from .
Read more >
TypeScript's @ts-expect-error: The best way to ignore errors
One of the sneakier new awesome features of the recently released TypeScript 3.9 was the new comment `// @ts-expect- error `.
Read more >
TypeScript Errors shown for latest version when project ...
Open the project, build and the build will be successful but after a while the error list will fill up with TypeScript 2.5...
Read more >
TypeScript errors and how to fix them
Common Errors. Below you find a list of common TypeScript errors along with the buggy code and its fixed version. If you're interested...
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