yume-chan/ya-webadb

Cannot find name 'ErrorOptions'

LaAlexe opened this issue · 1 comments

Issue Checklist

  • I'm using the library programmatically
  • For Scrcpy related issues, I have searched in Genymobile/scrcpy repository.

Library version

0.0.21

Environment

Ubuntu 22.04

Device

Android

Describe the bug

I use angular framework for application. I installed 0.0.21 version of library and got an issue [Cannot find name 'ErrorOptions' in package ](error: node_modules/@yume-chan/adb/esm/commands/framebuffer.d.ts:54:44)

Steps to reproduce

  1. Install the 0.0.21 version of library
  2. run command ng serve
  3. see the error message in console

ErrorOptions is a standard JavaScript type.

In tsconfig.json, add es2022 (or esnext) to lib. If it still doesn't exist, upgrade your TypeScript version.

I think adding "skipLibCheck": true should also fix the issue.