Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] incompatibility with newer "pino" dependencies #1249

Open
allgood opened this issue Feb 6, 2025 · 0 comments
Open

[BUG] incompatibility with newer "pino" dependencies #1249

allgood opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@allgood
Copy link

allgood commented Feb 6, 2025

Describe the bug

Using Baileys on a project that uses pino from version 8 and beyond, when building it complains of type mismatches.

src/libs/wbot.ts(130,11): error TS2322: Type 'Logger<never, boolean>' is not assignable to type 'Logger'.

To Reproduce

On a project with pino version 8 or above, try to use the Logger object as a parameter of makeWASocket or other functions that accepts a

Expected behavior

Project building correctly, but it ends on the described error.

Using "as any" makes it work since the prototypes and usage matches correctly

Environment (please complete the following information):
not aplicable

Additional context
not aplicable

@allgood allgood added the bug Something isn't working label Feb 6, 2025
allgood added a commit to allgood/Baileys that referenced this issue Feb 6, 2025
allgood added a commit to allgood/Baileys that referenced this issue Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant