zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.

Home Page:https://zxing-js.github.io/library/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URGENT: Build error due too an upgrade of the dependency `ts-custom-error`

anthony-bt opened this issue · comments

Describe the bug
A dependency has been updated some days ago and now an error occurs at the build.

Error: node_modules/ts-custom-error/dist/custom-error.d.ts:3:45 - error TS2304: Cannot find name 'ErrorOptions'.
constructor(message?: string, options?: ErrorOptions);

To Reproduce
Install these libraries in Angular project but maybe without you can get the error.

"@zxing/browser": "0.1.1",
"@zxing/library": "0.19.1",
"@zxing/ngx-scanner": "3.5.0"

If the default dependency "ts-custom-error": "3.3.0" is installed then the library will not compile in my project. But if I force the installation of the previous version "ts-custom-error": "3.2.2" all will work well.

Same problem Here! thanks for the quick solution. I downgraded

Same problem!

Stale issue message