Open xxluke opened 4 years ago
A workaround is to use the skipLibCheck
option, like this: tsc --noEmit --skipLibCheck
More appropriate solution would be to use specific prom-client version prom-client@11.5.2
as v12 has breaking changes (https://github.com/siimon/prom-client/releases/tag/v12.0.0). I also suggest renaming this issue to "Add support for prom-client v12" or something similar :)
This is actually quite an important issue and should be documented in README
Hey, sorry for the delay, and that's right that should be documented. To avoid any issue with that kind of stuff, I will set prom-client as dependency instead of devDependency...
Hi @spike008t, are You sure that aiming to "prom-client": "^12.0.0"
is correct? If I'm not mistaken, the v12 has breaking changes and this library works prom-client@11.5.2
(see my previous comment)
Is it actually the case with the v1.0.0?
Hi,
the compiler outputs some errors for this library, so it's not possible to use it when your CI/CD contains type checking.