Cannot find name 'ErrorOptions'
LaAlexe opened this issue · 1 comments
LaAlexe commented
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
- Install the 0.0.21 version of library
- run command ng serve
- see the error message in console
yume-chan commented
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.