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.

Typescript error in lib

See original GitHub issue

Since the latest update i am getting the following typescript error:

node_modules/@zxing/library/esm5/browser/VideoInputDevice.d.ts(6,22): TS2420: Class 'VideoInputDevice' incorrectly implements interface 'MediaDeviceInfo'. Property 'toJSON' is missing in type 'VideoInputDevice' but required in type 'MediaDeviceInfo'. Version: typescript 3.5.3

Can anyone help to resolve this error?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
iskaroncommented, Aug 29, 2019

Can confirm, when using typescript 3.5.3, I am getting this error with angular 8.2. Downgrading typescript to 3.4.5 works with angular 8.2.4

0reactions
odahcamcommented, Aug 30, 2019

Could you post a log or something about it? Or even open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable/suppress errors from libraries in TypeScript?
Is there any way of suppressing/muting/disabling error checking in libraries (e.g. directory node_modules )?. It can't be a duplicate of Allow ...
Read more >
TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them. ... Depending on the configuration of “lib” in your “tsconfig.json” file, there...
Read more >
Solve any external library error in TypeScript with module ...
This TypeScript tutorial will cover how we can use module augmentation to solve any type errors you might encounter when working with external...
Read more >
gfmio/ts-error - GitHub
ts-error. TL/DR: An extendable error class that actually works with TypeScript and ES6 support compatible with all environments, even very old browsers.
Read more >
TSConfig Option: lib - TypeScript
In TypeScript 4.5, lib files can be overriden by npm modules, ... Errors. Explore how TypeScript extends JavaScript to add more safety and...
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